{"id":202761,"student_id":2002,"content":"// 設為 true 則顯示蘋果\ngame.displayApple = true;\nvar diecount = 0\n\n\n// 手動點擊畫面使鳥起飛\nwhen('click', bird.jump);\n\n// 可以在主控台中印出 Q 觀察看看\n// 鳥的大腦,記錄在不同的狀態下要做什麼反應(跳/不跳)\nvar Q = {\n \"undefined\": [\n 0,\n 0\n ],\n \"-1:-32\": [\n 0,\n 0\n ],\n \"-1:-31\": [\n 0,\n 0\n ],\n \"-1:-30\": [\n 0,\n 0\n ],\n \"-1:-29\": [\n 0,\n 0\n ],\n \"-1:-28\": [\n 0,\n 0\n ],\n \"-1:-27\": [\n 0,\n 0\n ],\n \"-1:-26\": [\n 0,\n 0\n ],\n \"-1:-25\": [\n 0,\n 0\n ],\n \"-1:-24\": [\n 0,\n 0\n ],\n \"-1:-23\": [\n 0,\n 0\n ],\n \"-1:-22\": [\n 0,\n 0\n ],\n \"-1:-21\": [\n 0,\n 0\n ],\n \"-1:-20\": [\n 0,\n 0\n ],\n \"-1:-19\": [\n 0,\n 0\n ],\n \"-1:-18\": [\n 0,\n 0\n ],\n \"-1:-17\": [\n 0,\n 0\n ],\n \"-1:-16\": [\n 0,\n 0\n ],\n \"-1:-15\": [\n 0,\n 0\n ],\n \"-1:-14\": [\n 0,\n 0\n ],\n \"-1:-13\": [\n 0,\n 0\n ],\n \"-1:-12\": [\n 0,\n 0\n ],\n \"-1:-11\": [\n 0,\n 0\n ],\n \"-1:-10\": [\n 0,\n 0\n ],\n \"-1:-9\": [\n 0,\n 0\n ],\n \"-1:-8\": [\n 0,\n 0\n ],\n \"-1:-7\": [\n 0,\n 0\n ],\n \"-1:-6\": [\n 0,\n 0\n ],\n \"-1:-5\": [\n 0,\n 0\n ],\n \"-1:-4\": [\n 0,\n 0\n ],\n \"-1:-3\": [\n 0,\n 0\n ],\n \"-1:-2\": [\n 0,\n 0\n ],\n \"-1:-1\": [\n 0,\n 0\n ],\n \"-1:0\": [\n 0,\n 0\n ],\n \"-1:1\": [\n 0,\n 0\n ],\n \"-1:2\": [\n 0,\n 0\n ],\n \"-1:3\": [\n 0,\n 0\n ],\n \"-1:4\": [\n 0,\n 0\n ],\n \"-1:5\": [\n 0,\n 0\n ],\n \"-1:6\": [\n 0,\n 0\n ],\n \"-1:7\": [\n 0,\n 0\n ],\n \"-1:8\": [\n 0,\n 0\n ],\n \"-1:9\": [\n 0,\n 0\n ],\n \"-1:10\": [\n 0,\n 0\n ],\n \"-1:11\": [\n 0,\n 0\n ],\n \"-1:12\": [\n 0,\n 0\n ],\n \"-1:13\": [\n 0,\n 0\n ],\n \"-1:14\": [\n 0,\n 0\n ],\n \"-1:15\": [\n 0,\n 0\n ],\n \"-1:16\": [\n 0,\n 0\n ],\n \"-1:17\": [\n 0,\n 0\n ],\n \"-1:18\": [\n 0,\n 0\n ],\n \"-1:19\": [\n 0,\n 0\n ],\n \"-1:20\": [\n 0,\n 0\n ],\n \"-1:21\": [\n 0,\n 0\n ],\n \"-1:22\": [\n 0,\n 0\n ],\n \"-1:23\": [\n 0,\n 0\n ],\n \"-1:24\": [\n 0,\n 0\n ],\n \"-1:25\": [\n 0,\n 0\n ],\n \"-1:26\": [\n 0,\n 0\n ],\n \"-1:27\": [\n 0,\n 0\n ],\n \"-1:28\": [\n 0,\n 0\n ],\n \"-1:29\": [\n 0,\n 0\n ],\n \"-1:30\": [\n 0,\n 0\n ],\n \"-1:31\": [\n 0,\n 0\n ],\n \"0:-32\": [\n 0,\n 0\n ],\n \"0:-31\": [\n 0,\n 0\n ],\n \"0:-30\": [\n 0,\n 0\n ],\n \"0:-29\": [\n 0,\n 0\n ],\n \"0:-28\": [\n 0,\n 0\n ],\n \"0:-27\": [\n 0,\n 0\n ],\n \"0:-26\": [\n 0,\n 0\n ],\n \"0:-25\": [\n 0,\n 0\n ],\n \"0:-24\": [\n 0,\n 0\n ],\n \"0:-23\": [\n 0,\n 0\n ],\n \"0:-22\": [\n 0,\n 0\n ],\n \"0:-21\": [\n 0,\n 0\n ],\n \"0:-20\": [\n 0,\n 0\n ],\n \"0:-19\": [\n 0,\n 0\n ],\n \"0:-18\": [\n 0,\n 0\n ],\n \"0:-17\": [\n 0,\n 0\n ],\n \"0:-16\": [\n 0,\n 0\n ],\n \"0:-15\": [\n 0,\n 0\n ],\n \"0:-14\": [\n 0,\n 0\n ],\n \"0:-13\": [\n 0,\n 0\n ],\n \"0:-12\": [\n 0,\n 0\n ],\n \"0:-11\": [\n 0,\n 0\n ],\n \"0:-10\": [\n 0,\n 0\n ],\n \"0:-9\": [\n 0,\n 0\n ],\n \"0:-8\": [\n 0,\n 0\n ],\n \"0:-7\": [\n 0,\n 0\n ],\n \"0:-6\": [\n 0,\n 0\n ],\n \"0:-5\": [\n 0,\n 0\n ],\n \"0:-4\": [\n 0,\n 0\n ],\n \"0:-3\": [\n 0,\n 0\n ],\n \"0:-2\": [\n 0,\n 0\n ],\n \"0:-1\": [\n 0,\n 0\n ],\n \"0:0\": [\n 0,\n 0\n ],\n \"0:1\": [\n 0,\n 0\n ],\n \"0:2\": [\n 0,\n 0\n ],\n \"0:3\": [\n 0,\n 0\n ],\n \"0:4\": [\n 0,\n 0\n ],\n \"0:5\": [\n 0,\n 0\n ],\n \"0:6\": [\n 0,\n 0\n ],\n \"0:7\": [\n 0,\n 0\n ],\n \"0:8\": [\n 0,\n 0\n ],\n \"0:9\": [\n 0,\n 0\n ],\n \"0:10\": [\n 0,\n 0\n ],\n \"0:11\": [\n 0,\n 0\n ],\n \"0:12\": [\n 0,\n 0\n ],\n \"0:13\": [\n 0,\n 0\n ],\n \"0:14\": [\n 0,\n 0\n ],\n \"0:15\": [\n 0,\n 0\n ],\n \"0:16\": [\n 0,\n 0\n ],\n \"0:17\": [\n 0,\n 0\n ],\n \"0:18\": [\n 0,\n 0\n ],\n \"0:19\": [\n 0,\n 0\n ],\n \"0:20\": [\n 0,\n 0\n ],\n \"0:21\": [\n 0,\n 0\n ],\n \"0:22\": [\n 0,\n 0\n ],\n \"0:23\": [\n 0,\n 0\n ],\n \"0:24\": [\n 0,\n 0\n ],\n \"0:25\": [\n 0,\n 0\n ],\n \"0:26\": [\n 0,\n 0\n ],\n \"0:27\": [\n 0,\n 0\n ],\n \"0:28\": [\n 0,\n 0\n ],\n \"0:29\": [\n 0,\n 0\n ],\n \"0:30\": [\n 0,\n 0\n ],\n \"0:31\": [\n 0,\n 0\n ],\n \"1:-32\": [\n 0,\n 0\n ],\n \"1:-31\": [\n 0,\n 0\n ],\n \"1:-30\": [\n 0,\n 0\n ],\n \"1:-29\": [\n 0,\n 0\n ],\n \"1:-28\": [\n 0,\n 0\n ],\n \"1:-27\": [\n 0,\n 0\n ],\n \"1:-26\": [\n 0,\n 0\n ],\n \"1:-25\": [\n 0,\n 0\n ],\n \"1:-24\": [\n 0,\n 0\n ],\n \"1:-23\": [\n 0,\n 0\n ],\n \"1:-22\": [\n 0,\n 0\n ],\n \"1:-21\": [\n 0,\n 0\n ],\n \"1:-20\": [\n 0,\n 0\n ],\n \"1:-19\": [\n 0,\n 0\n ],\n \"1:-18\": [\n 0,\n 0\n ],\n \"1:-17\": [\n 0,\n 0\n ],\n \"1:-16\": [\n 0,\n 0\n ],\n \"1:-15\": [\n 0,\n 0\n ],\n \"1:-14\": [\n 0,\n 0\n ],\n \"1:-13\": [\n 0,\n 0\n ],\n \"1:-12\": [\n 0,\n 0\n ],\n \"1:-11\": [\n 0,\n 0\n ],\n \"1:-10\": [\n 0,\n 0\n ],\n \"1:-9\": [\n 0,\n 0\n ],\n \"1:-8\": [\n 0,\n 0\n ],\n \"1:-7\": [\n 0,\n 0\n ],\n \"1:-6\": [\n 0,\n 0\n ],\n \"1:-5\": [\n 0,\n 0\n ],\n \"1:-4\": [\n 0,\n 0\n ],\n \"1:-3\": [\n -300,\n 19.586991359139002\n ],\n \"1:-2\": [\n -290.11558056474655,\n 4.735566388833171\n ],\n \"1:-1\": [\n 4.991737541541102,\n 0\n ],\n \"1:0\": [\n 5.0213813546197805,\n 0\n ],\n \"1:1\": [\n 4.991967352154259,\n 0\n ],\n \"1:2\": [\n 0,\n 0\n ],\n \"1:3\": [\n 0,\n 0\n ],\n \"1:4\": [\n 0,\n 0\n ],\n \"1:5\": [\n 0,\n 0\n ],\n \"1:6\": [\n 0,\n 0\n ],\n \"1:7\": [\n 0,\n 0\n ],\n \"1:8\": [\n 0,\n 0\n ],\n \"1:9\": [\n 0,\n 0\n ],\n \"1:10\": [\n 0,\n 0\n ],\n \"1:11\": [\n 0,\n 0\n ],\n \"1:12\": [\n 0,\n 0\n ],\n \"1:13\": [\n 0,\n 0\n ],\n \"1:14\": [\n 0,\n 0\n ],\n \"1:15\": [\n 0,\n 0\n ],\n \"1:16\": [\n 0,\n 0\n ],\n \"1:17\": [\n 0,\n 0\n ],\n \"1:18\": [\n 0,\n 0\n ],\n \"1:19\": [\n 0,\n 0\n ],\n \"1:20\": [\n 0,\n 0\n ],\n \"1:21\": [\n 0,\n 0\n ],\n \"1:22\": [\n 0,\n 0\n ],\n \"1:23\": [\n 0,\n 0\n ],\n \"1:24\": [\n 0,\n 0\n ],\n \"1:25\": [\n 0,\n 0\n ],\n \"1:26\": [\n 0,\n 0\n ],\n \"1:27\": [\n 0,\n 0\n ],\n \"1:28\": [\n 0,\n 0\n ],\n \"1:29\": [\n 0,\n 0\n ],\n \"1:30\": [\n 0,\n 0\n ],\n \"1:31\": [\n 0,\n 0\n ],\n \"2:-32\": [\n 0,\n 0\n ],\n \"2:-31\": [\n 0,\n 0\n ],\n \"2:-30\": [\n 0,\n 0\n ],\n \"2:-29\": [\n 0,\n 0\n ],\n \"2:-28\": [\n 0,\n 0\n ],\n \"2:-27\": [\n 0,\n 0\n ],\n \"2:-26\": [\n 0,\n 0\n ],\n \"2:-25\": [\n 0,\n 0\n ],\n \"2:-24\": [\n 0,\n 0\n ],\n \"2:-23\": [\n 0,\n 0\n ],\n \"2:-22\": [\n 0,\n 0\n ],\n \"2:-21\": [\n 0,\n 0\n ],\n \"2:-20\": [\n 0,\n 0\n ],\n \"2:-19\": [\n 0,\n 0\n ],\n \"2:-18\": [\n 0,\n 0\n ],\n \"2:-17\": [\n 0,\n 0\n ],\n \"2:-16\": [\n 0,\n 0\n ],\n \"2:-15\": [\n 0,\n 0\n ],\n \"2:-14\": [\n 0,\n 0\n ],\n \"2:-13\": [\n 0,\n 0\n ],\n \"2:-12\": [\n 0,\n 0\n ],\n \"2:-11\": [\n 0,\n 0\n ],\n \"2:-10\": [\n 0,\n 0\n ],\n \"2:-9\": [\n 0,\n 0\n ],\n \"2:-8\": [\n 0,\n 0\n ],\n \"2:-7\": [\n 0,\n 0\n ],\n \"2:-6\": [\n 0,\n 0\n ],\n \"2:-5\": [\n 0,\n 0\n ],\n \"2:-4\": [\n 0.401376,\n 0\n ],\n \"2:-3\": [\n -282.38128707037436,\n 19.96680299409271\n ],\n \"2:-2\": [\n -285.6288836910486,\n 21.90521776372337\n ],\n \"2:-1\": [\n 5.001225179106968,\n 0\n ],\n \"2:0\": [\n 5.012597359697361,\n 0\n ],\n \"2:1\": [\n 4.940629189966881,\n 0\n ],\n \"2:2\": [\n 1.5178506648825694,\n 0\n ],\n \"2:3\": [\n 10.8,\n 0\n ],\n \"2:4\": [\n 0,\n 0\n ],\n \"2:5\": [\n 0,\n 0\n ],\n \"2:6\": [\n 0,\n 0\n ],\n \"2:7\": [\n 0,\n 0\n ],\n \"2:8\": [\n 0,\n 0\n ],\n \"2:9\": [\n 0,\n 0\n ],\n \"2:10\": [\n 0,\n 0\n ],\n \"2:11\": [\n 0,\n 0\n ],\n \"2:12\": [\n 0,\n 0\n ],\n \"2:13\": [\n 0,\n 0\n ],\n \"2:14\": [\n 0,\n 0\n ],\n \"2:15\": [\n 0,\n 0\n ],\n \"2:16\": [\n 0,\n 0\n ],\n \"2:17\": [\n 0,\n 0\n ],\n \"2:18\": [\n 0,\n 0\n ],\n \"2:19\": [\n 0,\n 0\n ],\n \"2:20\": [\n 0,\n 0\n ],\n \"2:21\": [\n 0,\n 0\n ],\n \"2:22\": [\n 0,\n 0\n ],\n \"2:23\": [\n 0,\n 0\n ],\n \"2:24\": [\n 0,\n 0\n ],\n \"2:25\": [\n 0,\n 0\n ],\n \"2:26\": [\n 0,\n 0\n ],\n \"2:27\": [\n 0,\n 0\n ],\n \"2:28\": [\n 0,\n 0\n ],\n \"2:29\": [\n 0,\n 0\n ],\n \"2:30\": [\n 0,\n 0\n ],\n \"2:31\": [\n 0,\n 0\n ],\n \"3:-32\": [\n 0,\n 0\n ],\n \"3:-31\": [\n 0,\n 0\n ],\n \"3:-30\": [\n 0,\n 0\n ],\n \"3:-29\": [\n 0,\n 0\n ],\n \"3:-28\": [\n 0,\n 0\n ],\n \"3:-27\": [\n 0,\n 0\n ],\n \"3:-26\": [\n 0,\n 0\n ],\n \"3:-25\": [\n 0,\n 0\n ],\n \"3:-24\": [\n 0,\n 0\n ],\n \"3:-23\": [\n 0,\n 0\n ],\n \"3:-22\": [\n 0,\n 0\n ],\n \"3:-21\": [\n 0,\n 0\n ],\n \"3:-20\": [\n 0,\n 0\n ],\n \"3:-19\": [\n 0,\n 0\n ],\n \"3:-18\": [\n 0,\n 0\n ],\n \"3:-17\": [\n 0,\n 0\n ],\n \"3:-16\": [\n 0,\n 0\n ],\n \"3:-15\": [\n 0,\n 0\n ],\n \"3:-14\": [\n 0,\n 0\n ],\n \"3:-13\": [\n 0,\n 0\n ],\n \"3:-12\": [\n 0,\n 0\n ],\n \"3:-11\": [\n 0,\n 0\n ],\n \"3:-10\": [\n 0,\n 0\n ],\n \"3:-9\": [\n 0,\n 0\n ],\n \"3:-8\": [\n 0,\n 0\n ],\n \"3:-7\": [\n 0,\n 0\n ],\n \"3:-6\": [\n 0,\n 0\n ],\n \"3:-5\": [\n 0,\n 0\n ],\n \"3:-4\": [\n 11.97382287141825,\n 0\n ],\n \"3:-3\": [\n -299.79,\n 20.370087179171513\n ],\n \"3:-2\": [\n -279.8017083742036,\n 17.416969986734433\n ],\n \"3:-1\": [\n 24.81400634879843,\n 0\n ],\n \"3:0\": [\n 17.389159628980742,\n 0\n ],\n \"3:1\": [\n 28.018514750449604,\n 0\n ],\n \"3:2\": [\n 26.261635443290885,\n 0\n ],\n \"3:3\": [\n 17.83591928068756,\n 0\n ],\n \"3:4\": [\n 0.51,\n 0\n ],\n \"3:5\": [\n 0,\n 0\n ],\n \"3:6\": [\n 0,\n 0\n ],\n \"3:7\": [\n 0,\n 0\n ],\n \"3:8\": [\n 0,\n 0\n ],\n \"3:9\": [\n 0,\n 0\n ],\n \"3:10\": [\n 0,\n 0\n ],\n \"3:11\": [\n 0,\n 0\n ],\n \"3:12\": [\n 0,\n 0\n ],\n \"3:13\": [\n 0,\n 0\n ],\n \"3:14\": [\n 0,\n 0\n ],\n \"3:15\": [\n 0,\n 0\n ],\n \"3:16\": [\n 0,\n 0\n ],\n \"3:17\": [\n 0,\n 0\n ],\n \"3:18\": [\n 0,\n 0\n ],\n \"3:19\": [\n 0,\n 0\n ],\n \"3:20\": [\n 0,\n 0\n ],\n \"3:21\": [\n 0,\n 0\n ],\n \"3:22\": [\n 0,\n 0\n ],\n \"3:23\": [\n 0,\n 0\n ],\n \"3:24\": [\n 0,\n 0\n ],\n \"3:25\": [\n 0,\n 0\n ],\n \"3:26\": [\n 0,\n 0\n ],\n \"3:27\": [\n 0,\n 0\n ],\n \"3:28\": [\n 0,\n 0\n ],\n \"3:29\": [\n 0,\n 0\n ],\n \"3:30\": [\n 0,\n 0\n ],\n \"3:31\": [\n 0,\n 0\n ],\n \"4:-32\": [\n 0,\n 0\n ],\n \"4:-31\": [\n 0,\n 0\n ],\n \"4:-30\": [\n 0,\n 0\n ],\n \"4:-29\": [\n 0,\n 0\n ],\n \"4:-28\": [\n 0,\n 0\n ],\n \"4:-27\": [\n 0,\n 0\n ],\n \"4:-26\": [\n 0,\n 0\n ],\n \"4:-25\": [\n 0,\n 0\n ],\n \"4:-24\": [\n 0,\n 0\n ],\n \"4:-23\": [\n 0,\n 0\n ],\n \"4:-22\": [\n 0,\n 0\n ],\n \"4:-21\": [\n 0,\n 0\n ],\n \"4:-20\": [\n 0,\n 0\n ],\n \"4:-19\": [\n 0.3,\n 0\n ],\n \"4:-18\": [\n 0,\n 0\n ],\n \"4:-17\": [\n 0,\n 0\n ],\n \"4:-16\": [\n -299.45292,\n 1.3962182150332358\n ],\n \"4:-15\": [\n -346.88398893532616,\n -625.8428791492477\n ],\n \"4:-14\": [\n -208.57640073182495,\n -495.7428989287672\n ],\n \"4:-13\": [\n -208.0489238040001,\n -495.7943371602761\n ],\n \"4:-12\": [\n -1220.0194657734096,\n -712.5421977209405\n ],\n \"4:-11\": [\n -1012.26304841677,\n -663.9891500519366\n ],\n \"4:-10\": [\n -433.9832938221857,\n -888.0906146855565\n ],\n \"4:-9\": [\n -1260.1971864302088,\n -898.7975676016279\n ],\n \"4:-8\": [\n -481.80577880766907,\n -1106.5454764927727\n ],\n \"4:-7\": [\n -535.5952151702654,\n -1020.8741040490952\n ],\n \"4:-6\": [\n -688.4366524540961,\n -1145.1899402273666\n ],\n \"4:-5\": [\n -616.176070279151,\n -952.324800930927\n ],\n \"4:-4\": [\n 11.300658032927986,\n -495.85299890249973\n ],\n \"4:-3\": [\n -294.96652199202634,\n 14.812752028851644\n ],\n \"4:-2\": [\n -287.28098160983734,\n 17.133151842862155\n ],\n \"4:-1\": [\n 17.855199708804356,\n 0\n ],\n \"4:0\": [\n 18.679287089175077,\n 0\n ],\n \"4:1\": [\n 15.08942566256162,\n 0\n ],\n \"4:2\": [\n 15.78120539564324,\n 0\n ],\n \"4:3\": [\n 12.643802884743884,\n 0\n ],\n \"4:4\": [\n 10.95339231409354,\n 0\n ],\n \"4:5\": [\n -208.06989568663178,\n -300\n ],\n \"4:6\": [\n 0.3,\n 0\n ],\n \"4:7\": [\n -300,\n 1.470390523367145\n ],\n \"4:8\": [\n 0,\n 0\n ],\n \"4:9\": [\n 0,\n 0\n ],\n \"4:10\": [\n 0,\n 0\n ],\n \"4:11\": [\n 0,\n 0\n ],\n \"4:12\": [\n 0,\n 0\n ],\n \"4:13\": [\n 0,\n 0\n ],\n \"4:14\": [\n 0,\n 0\n ],\n \"4:15\": [\n 0,\n 0\n ],\n \"4:16\": [\n 0,\n 0\n ],\n \"4:17\": [\n 0,\n 0\n ],\n \"4:18\": [\n 0,\n 0\n ],\n \"4:19\": [\n 0,\n 0\n ],\n \"4:20\": [\n 0,\n 0\n ],\n \"4:21\": [\n 0,\n 0\n ],\n \"4:22\": [\n 0,\n 0\n ],\n \"4:23\": [\n 0,\n 0\n ],\n \"4:24\": [\n 0,\n 0\n ],\n \"4:25\": [\n 0,\n 0\n ],\n \"4:26\": [\n 0,\n 0\n ],\n \"4:27\": [\n 0,\n 0\n ],\n \"4:28\": [\n 0,\n 0\n ],\n \"4:29\": [\n 0,\n 0\n ],\n \"4:30\": [\n 0,\n 0\n ],\n \"4:31\": [\n 0,\n 0\n ],\n \"5:-32\": [\n 0,\n 0\n ],\n \"5:-31\": [\n 0,\n 0\n ],\n \"5:-30\": [\n 0,\n 0\n ],\n \"5:-29\": [\n 0,\n 0\n ],\n \"5:-28\": [\n 0,\n 0\n ],\n \"5:-27\": [\n 0,\n 0\n ],\n \"5:-26\": [\n 0,\n 0\n ],\n \"5:-25\": [\n 0,\n 0\n ],\n \"5:-24\": [\n 0,\n 0\n ],\n \"5:-23\": [\n 0,\n 0\n ],\n \"5:-22\": [\n 0,\n 0\n ],\n \"5:-21\": [\n 0,\n 0\n ],\n \"5:-20\": [\n 0,\n 0\n ],\n \"5:-19\": [\n 0,\n 0\n ],\n \"5:-18\": [\n -299.79,\n 0\n ],\n \"5:-17\": [\n 0.7793999999999999,\n 0\n ],\n \"5:-16\": [\n -49.08219171335472,\n 0.372\n ],\n \"5:-15\": [\n -299.79,\n -40.59695712232045\n ],\n \"5:-14\": [\n -50.375370017729445,\n -49.46691036479161\n ],\n \"5:-13\": [\n -299.79,\n -409.8640703894247\n ],\n \"5:-12\": [\n -398.81557969555615,\n -352.7286981620309\n ],\n \"5:-11\": [\n -348.71598292693284,\n -247.307251587232\n ],\n \"5:-10\": [\n -306.10880308137286,\n -373.67823733922796\n ],\n \"5:-9\": [\n -416.96061476090887,\n -462.16826566972577\n ],\n \"5:-8\": [\n -279.15567165858175,\n -374.80881173029564\n ],\n \"5:-7\": [\n -407.2752247775836,\n -290.436773139546\n ],\n \"5:-6\": [\n -430.64702133696994,\n -384.09256536287126\n ],\n \"5:-5\": [\n -327.36888217149465,\n -123.4526785153375\n ],\n \"5:-4\": [\n -50.30838437278692,\n 10.293892282081494\n ],\n \"5:-3\": [\n -32.282428173633264,\n 12.794651391850461\n ],\n \"5:-2\": [\n 13.277152191123292,\n 0\n ],\n \"5:-1\": [\n 14.99805548303278,\n 0\n ],\n \"5:0\": [\n 15.140255195805596,\n 0\n ],\n \"5:1\": [\n 12.939658391158414,\n 0\n ],\n \"5:2\": [\n 11.210390787213223,\n 0\n ],\n \"5:3\": [\n 10.757170715151526,\n 0\n ],\n \"5:4\": [\n 10.05486448556679,\n 0\n ],\n \"5:5\": [\n 8.373233728840818,\n 0\n ],\n \"5:6\": [\n 2.283225290017517,\n 0\n ],\n \"5:7\": [\n 1.3873629565774344,\n 0\n ],\n \"5:8\": [\n 0.51,\n 0\n ],\n \"5:9\": [\n 0,\n 0\n ],\n \"5:10\": [\n 0,\n 0\n ],\n \"5:11\": [\n 0,\n 0\n ],\n \"5:12\": [\n 0,\n 0\n ],\n \"5:13\": [\n 0,\n 0\n ],\n \"5:14\": [\n 0,\n 0\n ],\n \"5:15\": [\n 0,\n 0\n ],\n \"5:16\": [\n 0,\n 0\n ],\n \"5:17\": [\n 0,\n 0\n ],\n \"5:18\": [\n 0,\n 0\n ],\n \"5:19\": [\n 0,\n 0\n ],\n \"5:20\": [\n 0,\n 0\n ],\n \"5:21\": [\n 0,\n 0\n ],\n \"5:22\": [\n 0,\n 0\n ],\n \"5:23\": [\n 0,\n 0\n ],\n \"5:24\": [\n 0,\n 0\n ],\n \"5:25\": [\n 0,\n 0\n ],\n \"5:26\": [\n 0,\n 0\n ],\n \"5:27\": [\n 0,\n 0\n ],\n \"5:28\": [\n 0,\n 0\n ],\n \"5:29\": [\n 0,\n 0\n ],\n \"5:30\": [\n 0,\n 0\n ],\n \"5:31\": [\n 0,\n 0\n ],\n \"6:-32\": [\n 0,\n 0\n ],\n \"6:-31\": [\n 0,\n 0\n ],\n \"6:-30\": [\n 0,\n 0\n ],\n \"6:-29\": [\n 0,\n 0\n ],\n \"6:-28\": [\n 0,\n 0\n ],\n \"6:-27\": [\n 0,\n 0\n ],\n \"6:-26\": [\n 0,\n 0\n ],\n \"6:-25\": [\n 0,\n 0\n ],\n \"6:-24\": [\n 0,\n 0\n ],\n \"6:-23\": [\n 0,\n 0\n ],\n \"6:-22\": [\n 0,\n 0\n ],\n \"6:-21\": [\n 0,\n 0\n ],\n \"6:-20\": [\n 0,\n 0\n ],\n \"6:-19\": [\n 0,\n 0\n ],\n \"6:-18\": [\n 0,\n 0\n ],\n \"6:-17\": [\n 0.3,\n 0\n ],\n \"6:-16\": [\n 0.657,\n 0\n ],\n \"6:-15\": [\n -6.6784501686414295,\n -18.167405608509014\n ],\n \"6:-14\": [\n -21.50047737416734,\n -20.888867918123548\n ],\n \"6:-13\": [\n -118.46305831135493,\n -112.19845700378423\n ],\n \"6:-12\": [\n -155.93650774178752,\n -178.1772289245321\n ],\n \"6:-11\": [\n -159.2481632793458,\n -149.61407244511506\n ],\n \"6:-10\": [\n -156.36112328172158,\n -165.02838160617307\n ],\n \"6:-9\": [\n -165.3496572218602,\n -141.47796360184367\n ],\n \"6:-8\": [\n -180.21087267782804,\n -169.00730375112096\n ],\n \"6:-7\": [\n -169.33729964880305,\n -170.86152350125502\n ],\n \"6:-6\": [\n -201.72678163910493,\n -128.9625621128478\n ],\n \"6:-5\": [\n -101.25282332983429,\n -40.72884478615975\n ],\n \"6:-4\": [\n -18.150810853562152,\n 8.874461654195581\n ],\n \"6:-3\": [\n -1.054364479787711,\n 9.705983090538053\n ],\n \"6:-2\": [\n 10.735293854095541,\n 0\n ],\n \"6:-1\": [\n 10.980035929662655,\n 0\n ],\n \"6:0\": [\n 9.685074462490459,\n 0\n ],\n \"6:1\": [\n 10.447850141967512,\n 0\n ],\n \"6:2\": [\n 9.787464008665834,\n 0\n ],\n \"6:3\": [\n 8.901004052304573,\n 0\n ],\n \"6:4\": [\n 8.077134920697874,\n 0\n ],\n \"6:5\": [\n 7.418976165781352,\n 0\n ],\n \"6:6\": [\n 6.0022461569970265,\n 0\n ],\n \"6:7\": [\n 2.119626391315696,\n 0\n ],\n \"6:8\": [\n 1.3065861913082384,\n 0\n ],\n \"6:9\": [\n 0.51,\n 0\n ],\n \"6:10\": [\n 0,\n 0\n ],\n \"6:11\": [\n 0,\n 0\n ],\n \"6:12\": [\n 0,\n 0\n ],\n \"6:13\": [\n 0,\n 0\n ],\n \"6:14\": [\n 0,\n 0\n ],\n \"6:15\": [\n 0,\n 0\n ],\n \"6:16\": [\n 0,\n 0\n ],\n \"6:17\": [\n 0,\n 0\n ],\n \"6:18\": [\n 0,\n 0\n ],\n \"6:19\": [\n 0,\n 0\n ],\n \"6:20\": [\n 0,\n 0\n ],\n \"6:21\": [\n 0,\n 0\n ],\n \"6:22\": [\n 0,\n 0\n ],\n \"6:23\": [\n 0,\n 0\n ],\n \"6:24\": [\n 0,\n 0\n ],\n \"6:25\": [\n 0,\n 0\n ],\n \"6:26\": [\n 0,\n 0\n ],\n \"6:27\": [\n 0,\n 0\n ],\n \"6:28\": [\n 0,\n 0\n ],\n \"6:29\": [\n 0,\n 0\n ],\n \"6:30\": [\n 0,\n 0\n ],\n \"6:31\": [\n 0,\n 0\n ],\n \"7:-32\": [\n 0,\n 0\n ],\n \"7:-31\": [\n 0,\n 0\n ],\n \"7:-30\": [\n 0,\n 0\n ],\n \"7:-29\": [\n 0,\n 0\n ],\n \"7:-28\": [\n 0,\n 0\n ],\n \"7:-27\": [\n 0,\n 0\n ],\n \"7:-26\": [\n 0,\n 0\n ],\n \"7:-25\": [\n 0,\n 0\n ],\n \"7:-24\": [\n 0,\n 0\n ],\n \"7:-23\": [\n 0,\n 0\n ],\n \"7:-22\": [\n 0,\n 0\n ],\n \"7:-21\": [\n 0,\n 0\n ],\n \"7:-20\": [\n 0,\n 0\n ],\n \"7:-19\": [\n 0,\n 0\n ],\n \"7:-18\": [\n 0,\n 0\n ],\n \"7:-17\": [\n 0,\n 0\n ],\n \"7:-16\": [\n 0,\n 0\n ],\n \"7:-15\": [\n 0.51,\n 0\n ],\n \"7:-14\": [\n -16.294157020026358,\n -7.9143740930774555\n ],\n \"7:-13\": [\n -15.13082304415126,\n -27.92006801455268\n ],\n \"7:-12\": [\n -39.98243042082709,\n -64.4545864322502\n ],\n \"7:-11\": [\n -77.49005411674449,\n -74.18627230475354\n ],\n \"7:-10\": [\n -45.451186031024186,\n -56.63563496182081\n ],\n \"7:-9\": [\n -64.4578599208435,\n -81.26728229159909\n ],\n \"7:-8\": [\n -56.34341977342639,\n -69.79115278243248\n ],\n \"7:-7\": [\n -75.59297763457691,\n -90.13662979021264\n ],\n \"7:-6\": [\n -21.951896536227615,\n -85.64508801949263\n ],\n \"7:-5\": [\n 7.0117688184413485,\n -23.499557673961398\n ],\n \"7:-4\": [\n -2.0795815844148806,\n 7.687711192234887\n ],\n \"7:-3\": [\n -0.789468589453362,\n 8.193485629038074\n ],\n \"7:-2\": [\n 8.227127056395313,\n 0\n ],\n \"7:-1\": [\n 7.470347928813003,\n 0\n ],\n \"7:0\": [\n 8.495908949639574,\n 0\n ],\n \"7:1\": [\n 7.746742232754986,\n 0\n ],\n \"7:2\": [\n 7.967863834395966,\n 0\n ],\n \"7:3\": [\n 7.682202515574046,\n 0\n ],\n \"7:4\": [\n 7.085958357606089,\n 0\n ],\n \"7:5\": [\n 6.672974742160078,\n 0\n ],\n \"7:6\": [\n 5.717301792101173,\n 0\n ],\n \"7:7\": [\n 5.140968224289534,\n 0\n ],\n \"7:8\": [\n 1.9402420871281976,\n 0\n ],\n \"7:9\": [\n 1.5131522013010963,\n 0\n ],\n \"7:10\": [\n 0,\n 0\n ],\n \"7:11\": [\n 0,\n 0\n ],\n \"7:12\": [\n 0,\n 0\n ],\n \"7:13\": [\n 0,\n 0\n ],\n \"7:14\": [\n 0,\n 0\n ],\n \"7:15\": [\n 0,\n 0\n ],\n \"7:16\": [\n 0,\n 0\n ],\n \"7:17\": [\n 0,\n 0\n ],\n \"7:18\": [\n 0,\n 0\n ],\n \"7:19\": [\n 0,\n 0\n ],\n \"7:20\": [\n 0,\n 0\n ],\n \"7:21\": [\n 0,\n 0\n ],\n \"7:22\": [\n 0,\n 0\n ],\n \"7:23\": [\n 0,\n 0\n ],\n \"7:24\": [\n 0,\n 0\n ],\n \"7:25\": [\n 0,\n 0\n ],\n \"7:26\": [\n 0,\n 0\n ],\n \"7:27\": [\n 0,\n 0\n ],\n \"7:28\": [\n 0,\n 0\n ],\n \"7:29\": [\n 0,\n 0\n ],\n \"7:30\": [\n 0,\n 0\n ],\n \"7:31\": [\n 0,\n 0\n ],\n \"8:-32\": [\n 0,\n 0\n ],\n \"8:-31\": [\n 0,\n 0\n ],\n \"8:-30\": [\n 0,\n 0\n ],\n \"8:-29\": [\n 0,\n 0\n ],\n \"8:-28\": [\n 0,\n 0\n ],\n \"8:-27\": [\n 0,\n 0\n ],\n \"8:-26\": [\n 0,\n 0\n ],\n \"8:-25\": [\n 0,\n 0\n ],\n \"8:-24\": [\n 0,\n 0\n ],\n \"8:-23\": [\n 0,\n 0\n ],\n \"8:-22\": [\n 0,\n 0\n ],\n \"8:-21\": [\n 0,\n 0\n ],\n \"8:-20\": [\n 0,\n 0\n ],\n \"8:-19\": [\n 0,\n 0\n ],\n \"8:-18\": [\n 0,\n 0\n ],\n \"8:-17\": [\n 0,\n 0\n ],\n \"8:-16\": [\n 0,\n 0\n ],\n \"8:-15\": [\n 0,\n 0\n ],\n \"8:-14\": [\n 0.8846638069895649,\n 0\n ],\n \"8:-13\": [\n -2.7818533558814966,\n -0.9905820596679487\n ],\n \"8:-12\": [\n -10.697102095236643,\n -14.77658665620294\n ],\n \"8:-11\": [\n -15.602104448496599,\n -28.755543146368247\n ],\n \"8:-10\": [\n -13.468662086649399,\n -18.230706909446525\n ],\n \"8:-9\": [\n -15.711692164477956,\n -18.837030772913643\n ],\n \"8:-8\": [\n -36.41551963567105,\n -37.8676817929632\n ],\n \"8:-7\": [\n -13.670089671505275,\n -36.10840559723249\n ],\n \"8:-6\": [\n -11.97973976496457,\n 6.112121071888607\n ],\n \"8:-5\": [\n -8.141816298690852,\n 6.398479125286727\n ],\n \"8:-4\": [\n -1.9798871678263066,\n 6.999166233381073\n ],\n \"8:-3\": [\n 6.643672045378457,\n 0\n ],\n \"8:-2\": [\n 6.606244300162843,\n 0\n ],\n \"8:-1\": [\n 6.882695844602752,\n 0\n ],\n \"8:0\": [\n 6.534094048320201,\n 0\n ],\n \"8:1\": [\n 6.693912243572023,\n 0\n ],\n \"8:2\": [\n 6.758189006822038,\n 0\n ],\n \"8:3\": [\n 6.6185450188841575,\n 0\n ],\n \"8:4\": [\n 6.554672155561603,\n 0\n ],\n \"8:5\": [\n 6.129455562887546,\n 0\n ],\n \"8:6\": [\n 5.797984707056011,\n 0\n ],\n \"8:7\": [\n 5.085747003096581,\n 0\n ],\n \"8:8\": [\n 4.470159209678528,\n 0\n ],\n \"8:9\": [\n 1.1270686079999999,\n 0\n ],\n \"8:10\": [\n 0.9583262399999999,\n 0\n ],\n \"8:11\": [\n 0,\n 0\n ],\n \"8:12\": [\n 0,\n 0\n ],\n \"8:13\": [\n 0,\n 0\n ],\n \"8:14\": [\n 0,\n 0\n ],\n \"8:15\": [\n 0,\n 0\n ],\n \"8:16\": [\n 0,\n 0\n ],\n \"8:17\": [\n 0,\n 0\n ],\n \"8:18\": [\n 0,\n 0\n ],\n \"8:19\": [\n 0,\n 0\n ],\n \"8:20\": [\n 0,\n 0\n ],\n \"8:21\": [\n 0,\n 0\n ],\n \"8:22\": [\n 0,\n 0\n ],\n \"8:23\": [\n 0,\n 0\n ],\n \"8:24\": [\n 0,\n 0\n ],\n \"8:25\": [\n 0,\n 0\n ],\n \"8:26\": [\n 0,\n 0\n ],\n \"8:27\": [\n 0,\n 0\n ],\n \"8:28\": [\n 0,\n 0\n ],\n \"8:29\": [\n 0,\n 0\n ],\n \"8:30\": [\n 0,\n 0\n ],\n \"8:31\": [\n 0,\n 0\n ],\n \"9:-32\": [\n 0,\n 0\n ],\n \"9:-31\": [\n 0,\n 0\n ],\n \"9:-30\": [\n 0,\n 0\n ],\n \"9:-29\": [\n 0,\n 0\n ],\n \"9:-28\": [\n 0,\n 0\n ],\n \"9:-27\": [\n 0,\n 0\n ],\n \"9:-26\": [\n 0,\n 0\n ],\n \"9:-25\": [\n 0,\n 0\n ],\n \"9:-24\": [\n 0,\n 0\n ],\n \"9:-23\": [\n 0,\n 0\n ],\n \"9:-22\": [\n 0,\n 0\n ],\n \"9:-21\": [\n 0,\n 0\n ],\n \"9:-20\": [\n 0,\n 0\n ],\n \"9:-19\": [\n 0,\n 0\n ],\n \"9:-18\": [\n 0,\n 0\n ],\n \"9:-17\": [\n 0,\n 0\n ],\n \"9:-16\": [\n 0,\n 0\n ],\n \"9:-15\": [\n 0,\n 0\n ],\n \"9:-14\": [\n 0,\n 0\n ],\n \"9:-13\": [\n 0.4085242489703208,\n 0\n ],\n \"9:-12\": [\n 1.5439946787932208,\n 0\n ],\n \"9:-11\": [\n -3.897639485727222,\n 0\n ],\n \"9:-10\": [\n -0.9621167660632157,\n -2.317740138151052\n ],\n \"9:-9\": [\n -4.722657865164289,\n -5.6957403625415335\n ],\n \"9:-8\": [\n -15.810843203201614,\n -9.216561694738422\n ],\n \"9:-7\": [\n -7.45435848663851,\n 4.544124431033333\n ],\n \"9:-6\": [\n -2.4130374069828773,\n 5.464817100479482\n ],\n \"9:-5\": [\n 5.941645627734308,\n 0\n ],\n \"9:-4\": [\n 5.915280365976928,\n 0\n ],\n \"9:-3\": [\n 6.109113096673275,\n 0\n ],\n \"9:-2\": [\n 5.904319205104377,\n 0\n ],\n \"9:-1\": [\n 6.079725953241686,\n 0\n ],\n \"9:0\": [\n 6.1433672671982436,\n 0\n ],\n \"9:1\": [\n 5.8922725981789394,\n 0\n ],\n \"9:2\": [\n 6.227769198577995,\n 0\n ],\n \"9:3\": [\n 6.018508263499578,\n 0\n ],\n \"9:4\": [\n 6.0078914459102,\n 0\n ],\n \"9:5\": [\n 5.7200271448036855,\n 0\n ],\n \"9:6\": [\n 5.547615561094618,\n 0\n ],\n \"9:7\": [\n 5.343658259514459,\n 0\n ],\n \"9:8\": [\n 4.654493291165422,\n 0\n ],\n \"9:9\": [\n 4.3132959813713,\n 0\n ],\n \"9:10\": [\n 1.3147170479999999,\n 0\n ],\n \"9:11\": [\n 0,\n 0\n ],\n \"9:12\": [\n 0,\n 0\n ],\n \"9:13\": [\n 0,\n 0\n ],\n \"9:14\": [\n 0,\n 0\n ],\n \"9:15\": [\n 0,\n 0\n ],\n \"9:16\": [\n 0,\n 0\n ],\n \"9:17\": [\n 0,\n 0\n ],\n \"9:18\": [\n 0,\n 0\n ],\n \"9:19\": [\n 0,\n 0\n ],\n \"9:20\": [\n 0,\n 0\n ],\n \"9:21\": [\n 0,\n 0\n ],\n \"9:22\": [\n 0,\n 0\n ],\n \"9:23\": [\n 0,\n 0\n ],\n \"9:24\": [\n 0,\n 0\n ],\n \"9:25\": [\n 0,\n 0\n ],\n \"9:26\": [\n 0,\n 0\n ],\n \"9:27\": [\n 0,\n 0\n ],\n \"9:28\": [\n 0,\n 0\n ],\n \"9:29\": [\n 0,\n 0\n ],\n \"9:30\": [\n 0,\n 0\n ],\n \"9:31\": [\n 0,\n 0\n ],\n \"10:-32\": [\n 0,\n 0\n ],\n \"10:-31\": [\n 0,\n 0\n ],\n \"10:-30\": [\n 0,\n 0\n ],\n \"10:-29\": [\n 0,\n 0\n ],\n \"10:-28\": [\n 0,\n 0\n ],\n \"10:-27\": [\n 0,\n 0\n ],\n \"10:-26\": [\n 0,\n 0\n ],\n \"10:-25\": [\n 0,\n 0\n ],\n \"10:-24\": [\n 0,\n 0\n ],\n \"10:-23\": [\n 0,\n 0\n ],\n \"10:-22\": [\n 0,\n 0\n ],\n \"10:-21\": [\n 0,\n 0\n ],\n \"10:-20\": [\n 0,\n 0\n ],\n \"10:-19\": [\n 0,\n 0\n ],\n \"10:-18\": [\n 0,\n 0\n ],\n \"10:-17\": [\n 0,\n 0\n ],\n \"10:-16\": [\n 0,\n 0\n ],\n \"10:-15\": [\n 0,\n 0\n ],\n \"10:-14\": [\n 0,\n 0\n ],\n \"10:-13\": [\n 0,\n 0\n ],\n \"10:-12\": [\n 2.0299684313364637,\n 0\n ],\n \"10:-11\": [\n 2.291023390094761,\n 0\n ],\n \"10:-10\": [\n 1.4290031618905585,\n 0\n ],\n \"10:-9\": [\n 0.5498305872858722,\n -2.066344034169861\n ],\n \"10:-8\": [\n -1.7036080965180431,\n -1.7644863897239047\n ],\n \"10:-7\": [\n -0.8834175211127617,\n 2.976261222696226\n ],\n \"10:-6\": [\n 4.725750966261146,\n 0\n ],\n \"10:-5\": [\n 5.295398796360553,\n 0\n ],\n \"10:-4\": [\n 5.690949463105398,\n 0\n ],\n \"10:-3\": [\n 5.6141265849850335,\n 0\n ],\n \"10:-2\": [\n 5.665366376095951,\n 0\n ],\n \"10:-1\": [\n 5.552126937489857,\n 0\n ],\n \"10:0\": [\n 5.68948450685274,\n 0\n ],\n \"10:1\": [\n 5.630249457914823,\n 0\n ],\n \"10:2\": [\n 5.748395319659799,\n 0\n ],\n \"10:3\": [\n 5.590905764408358,\n 0\n ],\n \"10:4\": [\n 5.6196430506737665,\n 0\n ],\n \"10:5\": [\n 5.491560297149468,\n 0\n ],\n \"10:6\": [\n 5.39161404817051,\n 0\n ],\n \"10:7\": [\n 5.2989334388829015,\n 0\n ],\n \"10:8\": [\n 5.1199724467642165,\n 0\n ],\n \"10:9\": [\n 4.408088298128002,\n 0\n ],\n \"10:10\": [\n 1.753878153949118,\n 0\n ],\n \"10:11\": [\n 1.4157327956396974,\n 0\n ],\n \"10:12\": [\n 0,\n 0\n ],\n \"10:13\": [\n 0,\n 0\n ],\n \"10:14\": [\n 0,\n 0\n ],\n \"10:15\": [\n 0,\n 0\n ],\n \"10:16\": [\n 0,\n 0\n ],\n \"10:17\": [\n 0,\n 0\n ],\n \"10:18\": [\n 0,\n 0\n ],\n \"10:19\": [\n 0,\n 0\n ],\n \"10:20\": [\n 0,\n 0\n ],\n \"10:21\": [\n 0,\n 0\n ],\n \"10:22\": [\n 0,\n 0\n ],\n \"10:23\": [\n 0,\n 0\n ],\n \"10:24\": [\n 0,\n 0\n ],\n \"10:25\": [\n 0,\n 0\n ],\n \"10:26\": [\n 0,\n 0\n ],\n \"10:27\": [\n 0,\n 0\n ],\n \"10:28\": [\n 0,\n 0\n ],\n \"10:29\": [\n 0,\n 0\n ],\n \"10:30\": [\n 0,\n 0\n ],\n \"10:31\": [\n 0,\n 0\n ],\n \"11:-32\": [\n 0,\n 0\n ],\n \"11:-31\": [\n 0,\n 0\n ],\n \"11:-30\": [\n 0,\n 0\n ],\n \"11:-29\": [\n 0,\n 0\n ],\n \"11:-28\": [\n 0,\n 0\n ],\n \"11:-27\": [\n 0,\n 0\n ],\n \"11:-26\": [\n 0,\n 0\n ],\n \"11:-25\": [\n 0,\n 0\n ],\n \"11:-24\": [\n 0,\n 0\n ],\n \"11:-23\": [\n 0,\n 0\n ],\n \"11:-22\": [\n 0,\n 0\n ],\n \"11:-21\": [\n 0,\n 0\n ],\n \"11:-20\": [\n 0,\n 0\n ],\n \"11:-19\": [\n 0,\n 0\n ],\n \"11:-18\": [\n 0,\n 0\n ],\n \"11:-17\": [\n 0,\n 0\n ],\n \"11:-16\": [\n 0,\n 0\n ],\n \"11:-15\": [\n 0,\n 0\n ],\n \"11:-14\": [\n 0,\n 0\n ],\n \"11:-13\": [\n 0,\n 0\n ],\n \"11:-12\": [\n 0,\n 0\n ],\n \"11:-11\": [\n 2.629576368513562,\n 0\n ],\n \"11:-10\": [\n 3.232177352514741,\n 0\n ],\n \"11:-9\": [\n 2.359378353883685,\n 0\n ],\n \"11:-8\": [\n 1.9705873650957935,\n 0\n ],\n \"11:-7\": [\n 2.313490418951702,\n 0\n ],\n \"11:-6\": [\n 4.274575858386527,\n 0\n ],\n \"11:-5\": [\n 5.132917566775484,\n 0\n ],\n \"11:-4\": [\n 5.283495903397071,\n 0\n ],\n \"11:-3\": [\n 5.390796481118359,\n 0\n ],\n \"11:-2\": [\n 5.363507592339153,\n 0\n ],\n \"11:-1\": [\n 5.437929986376739,\n 0\n ],\n \"11:0\": [\n 5.391449112153722,\n 0\n ],\n \"11:1\": [\n 5.431461080983872,\n 0\n ],\n \"11:2\": [\n 5.405768103100137,\n 0\n ],\n \"11:3\": [\n 5.39688126204556,\n 0\n ],\n \"11:4\": [\n 5.3815300200223,\n 0\n ],\n \"11:5\": [\n 5.311119365229624,\n 0\n ],\n \"11:6\": [\n 5.28523102964524,\n 0\n ],\n \"11:7\": [\n 5.174085439365491,\n 0\n ],\n \"11:8\": [\n 5.0746825911568845,\n 0\n ],\n \"11:9\": [\n 4.592655186658369,\n 0\n ],\n \"11:10\": [\n 3.710046004836644,\n 0\n ],\n \"11:11\": [\n 1.3147170479999999,\n 0\n ],\n \"11:12\": [\n 0,\n 0\n ],\n \"11:13\": [\n 0,\n 0\n ],\n \"11:14\": [\n 0,\n 0\n ],\n \"11:15\": [\n 0,\n 0\n ],\n \"11:16\": [\n 0,\n 0\n ],\n \"11:17\": [\n 0,\n 0\n ],\n \"11:18\": [\n 0,\n 0\n ],\n \"11:19\": [\n 0,\n 0\n ],\n \"11:20\": [\n 0,\n 0\n ],\n \"11:21\": [\n 0,\n 0\n ],\n \"11:22\": [\n 0,\n 0\n ],\n \"11:23\": [\n 0,\n 0\n ],\n \"11:24\": [\n 0,\n 0\n ],\n \"11:25\": [\n 0,\n 0\n ],\n \"11:26\": [\n 0,\n 0\n ],\n \"11:27\": [\n 0,\n 0\n ],\n \"11:28\": [\n 0,\n 0\n ],\n \"11:29\": [\n 0,\n 0\n ],\n \"11:30\": [\n 0,\n 0\n ],\n \"11:31\": [\n 0,\n 0\n ],\n \"12:-32\": [\n 0,\n 0\n ],\n \"12:-31\": [\n 0,\n 0\n ],\n \"12:-30\": [\n 0,\n 0\n ],\n \"12:-29\": [\n 0,\n 0\n ],\n \"12:-28\": [\n 0,\n 0\n ],\n \"12:-27\": [\n 0,\n 0\n ],\n \"12:-26\": [\n 0,\n 0\n ],\n \"12:-25\": [\n 0,\n 0\n ],\n \"12:-24\": [\n 0,\n 0\n ],\n \"12:-23\": [\n 0,\n 0\n ],\n \"12:-22\": [\n 0,\n 0\n ],\n \"12:-21\": [\n 0,\n 0\n ],\n \"12:-20\": [\n 0,\n 0\n ],\n \"12:-19\": [\n 0,\n 0\n ],\n \"12:-18\": [\n 0,\n 0\n ],\n \"12:-17\": [\n 0,\n 0\n ],\n \"12:-16\": [\n 1.3283010952634016,\n 0\n ],\n \"12:-15\": [\n -300,\n 0\n ],\n \"12:-14\": [\n 0.3,\n 0\n ],\n \"12:-13\": [\n 0,\n 0\n ],\n \"12:-12\": [\n 0,\n 0\n ],\n \"12:-11\": [\n 0,\n 0\n ],\n \"12:-10\": [\n 3.829578578260172,\n 0\n ],\n \"12:-9\": [\n 3.951539541267481,\n 0\n ],\n \"12:-8\": [\n 3.3234943140283555,\n 0\n ],\n \"12:-7\": [\n 4.022099254618384,\n 0\n ],\n \"12:-6\": [\n 4.556178542175818,\n 0\n ],\n \"12:-5\": [\n 4.932979394959691,\n 0\n ],\n \"12:-4\": [\n 5.118659270710283,\n 0\n ],\n \"12:-3\": [\n 5.197591465451334,\n 0\n ],\n \"12:-2\": [\n 5.237668506769157,\n 0\n ],\n \"12:-1\": [\n 5.250002100918809,\n 0\n ],\n \"12:0\": [\n 5.263999149165356,\n 0\n ],\n \"12:1\": [\n 5.269942430442896,\n 0\n ],\n \"12:2\": [\n 5.271412950937595,\n 0\n ],\n \"12:3\": [\n 5.234194259236467,\n 0\n ],\n \"12:4\": [\n 5.216780907347298,\n 0\n ],\n \"12:5\": [\n 5.196501256768672,\n 0\n ],\n \"12:6\": [\n 5.171904180597914,\n 0\n ],\n \"12:7\": [\n 5.107370880219495,\n 0\n ],\n \"12:8\": [\n 5.027262333842307,\n 0\n ],\n \"12:9\": [\n 4.794784741932791,\n 0\n ],\n \"12:10\": [\n 3.886759627167428,\n 0\n ],\n \"12:11\": [\n 1.3147170479999999,\n 0\n ],\n \"12:12\": [\n 0,\n 0\n ],\n \"12:13\": [\n 0,\n 0\n ],\n \"12:14\": [\n 0,\n 0\n ],\n \"12:15\": [\n 0,\n 0\n ],\n \"12:16\": [\n 0,\n 0\n ],\n \"12:17\": [\n 0,\n 0\n ],\n \"12:18\": [\n 0,\n 0\n ],\n \"12:19\": [\n 0,\n 0\n ],\n \"12:20\": [\n 0,\n 0\n ],\n \"12:21\": [\n 0,\n 0\n ],\n \"12:22\": [\n 0,\n 0\n ],\n \"12:23\": [\n 0,\n 0\n ],\n \"12:24\": [\n 0,\n 0\n ],\n \"12:25\": [\n 0,\n 0\n ],\n \"12:26\": [\n 0,\n 0\n ],\n \"12:27\": [\n 0,\n 0\n ],\n \"12:28\": [\n 0,\n 0\n ],\n \"12:29\": [\n 0,\n 0\n ],\n \"12:30\": [\n 0,\n 0\n ],\n \"12:31\": [\n 0,\n 0\n ],\n \"13:-32\": [\n 0,\n 0\n ],\n \"13:-31\": [\n 0,\n 0\n ],\n \"13:-30\": [\n 0,\n 0\n ],\n \"13:-29\": [\n 0,\n 0\n ],\n \"13:-28\": [\n 0,\n 0\n ],\n \"13:-27\": [\n 0,\n 0\n ],\n \"13:-26\": [\n 0,\n 0\n ],\n \"13:-25\": [\n 0,\n 0\n ],\n \"13:-24\": [\n 0,\n 0\n ],\n \"13:-23\": [\n 0,\n 0\n ],\n \"13:-22\": [\n 0,\n 0\n ],\n \"13:-21\": [\n 0,\n 0\n ],\n \"13:-20\": [\n 0,\n 0\n ],\n \"13:-19\": [\n 0,\n 0\n ],\n \"13:-18\": [\n 0,\n 0\n ],\n \"13:-17\": [\n 0,\n 0\n ],\n \"13:-16\": [\n 0,\n 0\n ],\n \"13:-15\": [\n 0,\n 0\n ],\n \"13:-14\": [\n 0,\n 0\n ],\n \"13:-13\": [\n 0.51,\n 0\n ],\n \"13:-12\": [\n 0.3,\n 0\n ],\n \"13:-11\": [\n 0,\n 0\n ],\n \"13:-10\": [\n 2.8049187562047324,\n 0\n ],\n \"13:-9\": [\n 3.69947936571957,\n 0\n ],\n \"13:-8\": [\n 4.26858358092655,\n 0\n ],\n \"13:-7\": [\n 4.630971661614174,\n 0\n ],\n \"13:-6\": [\n 4.768995960215642,\n 0\n ],\n \"13:-5\": [\n 4.877345880034334,\n 0\n ],\n \"13:-4\": [\n 5.032914769205195,\n 0\n ],\n \"13:-3\": [\n 5.0723015520294945,\n 0\n ],\n \"13:-2\": [\n 5.15949665161066,\n 0\n ],\n \"13:-1\": [\n 5.156833788196556,\n 0\n ],\n \"13:0\": [\n 5.1570167328690575,\n 0\n ],\n \"13:1\": [\n 5.161826192304579,\n 0\n ],\n \"13:2\": [\n 5.167518212838679,\n 0\n ],\n \"13:3\": [\n 5.160584972998639,\n 0\n ],\n \"13:4\": [\n 5.121344250765164,\n 0\n ],\n \"13:5\": [\n 5.123772834652592,\n 0\n ],\n \"13:6\": [\n 5.107043183414364,\n 0\n ],\n \"13:7\": [\n 5.068770965423157,\n 0\n ],\n \"13:8\": [\n 5.01649251702038,\n 0\n ],\n \"13:9\": [\n 4.813953788337198,\n 0\n ],\n \"13:10\": [\n 4.051950912025225,\n 0\n ],\n \"13:11\": [\n 1.3147170479999999,\n 0\n ],\n \"13:12\": [\n 0,\n 0\n ],\n \"13:13\": [\n 0,\n 0\n ],\n \"13:14\": [\n 0,\n 0\n ],\n \"13:15\": [\n 0,\n 0\n ],\n \"13:16\": [\n 0,\n 0\n ],\n \"13:17\": [\n 0,\n 0\n ],\n \"13:18\": [\n 0,\n 0\n ],\n \"13:19\": [\n 0,\n 0\n ],\n \"13:20\": [\n 0,\n 0\n ],\n \"13:21\": [\n 0,\n 0\n ],\n \"13:22\": [\n 0,\n 0\n ],\n \"13:23\": [\n 0,\n 0\n ],\n \"13:24\": [\n 0,\n 0\n ],\n \"13:25\": [\n 0,\n 0\n ],\n \"13:26\": [\n 0,\n 0\n ],\n \"13:27\": [\n 0,\n 0\n ],\n \"13:28\": [\n 0,\n 0\n ],\n \"13:29\": [\n 0,\n 0\n ],\n \"13:30\": [\n 0,\n 0\n ],\n \"13:31\": [\n 0,\n 0\n ],\n \"14:-32\": [\n 0,\n 0\n ],\n \"14:-31\": [\n 0,\n 0\n ],\n \"14:-30\": [\n 0,\n 0\n ],\n \"14:-29\": [\n 0,\n 0\n ],\n \"14:-28\": [\n 0,\n 0\n ],\n \"14:-27\": [\n 0,\n 0\n ],\n \"14:-26\": [\n 0,\n 0\n ],\n \"14:-25\": [\n 0,\n 0\n ],\n \"14:-24\": [\n 0,\n 0\n ],\n \"14:-23\": [\n 0,\n 0\n ],\n \"14:-22\": [\n 0,\n 0\n ],\n \"14:-21\": [\n 0,\n 0\n ],\n \"14:-20\": [\n 0,\n 0\n ],\n \"14:-19\": [\n 0,\n 0\n ],\n \"14:-18\": [\n 0,\n 0\n ],\n \"14:-17\": [\n 0,\n 0\n ],\n \"14:-16\": [\n 0,\n 0\n ],\n \"14:-15\": [\n 0,\n 0\n ],\n \"14:-14\": [\n 0,\n 0\n ],\n \"14:-13\": [\n 0,\n 0\n ],\n \"14:-12\": [\n 0,\n 0\n ],\n \"14:-11\": [\n 1.1594579999999999,\n 0\n ],\n \"14:-10\": [\n 2.6225592848541313,\n 0\n ],\n \"14:-9\": [\n 3.9531876346530304,\n 0\n ],\n \"14:-8\": [\n 4.672435655800041,\n 0\n ],\n \"14:-7\": [\n 4.787971186427118,\n 0\n ],\n \"14:-6\": [\n 4.822535094401553,\n 0\n ],\n \"14:-5\": [\n 4.902220984620159,\n 0\n ],\n \"14:-4\": [\n 4.999969860193881,\n 0\n ],\n \"14:-3\": [\n 5.063841394484701,\n 0\n ],\n \"14:-2\": [\n 5.089668490669911,\n 0\n ],\n \"14:-1\": [\n 5.1019270335604086,\n 0\n ],\n \"14:0\": [\n 5.103360270339939,\n 0\n ],\n \"14:1\": [\n 5.09731993086851,\n 0\n ],\n \"14:2\": [\n 5.099585869663445,\n 0\n ],\n \"14:3\": [\n 5.10146771132567,\n 0\n ],\n \"14:4\": [\n 5.090780312754295,\n 0\n ],\n \"14:5\": [\n 5.077031905694193,\n 0\n ],\n \"14:6\": [\n 5.059667556254831,\n 0\n ],\n \"14:7\": [\n 5.040051424565167,\n 0\n ],\n \"14:8\": [\n 5.006571557696934,\n 0\n ],\n \"14:9\": [\n 4.837798157402468,\n 0\n ],\n \"14:10\": [\n 4.067277645975578,\n 0\n ],\n \"14:11\": [\n 0.877176,\n 0\n ],\n \"14:12\": [\n 0,\n 0\n ],\n \"14:13\": [\n 0,\n 0\n ],\n \"14:14\": [\n 0,\n 0\n ],\n \"14:15\": [\n 0,\n 0\n ],\n \"14:16\": [\n 0,\n 0\n ],\n \"14:17\": [\n 0,\n 0\n ],\n \"14:18\": [\n 0,\n 0\n ],\n \"14:19\": [\n 0,\n 0\n ],\n \"14:20\": [\n 0,\n 0\n ],\n \"14:21\": [\n 0,\n 0\n ],\n \"14:22\": [\n 0,\n 0\n ],\n \"14:23\": [\n 0,\n 0\n ],\n \"14:24\": [\n 0,\n 0\n ],\n \"14:25\": [\n 0,\n 0\n ],\n \"14:26\": [\n 0,\n 0\n ],\n \"14:27\": [\n 0,\n 0\n ],\n \"14:28\": [\n 0,\n 0\n ],\n \"14:29\": [\n 0,\n 0\n ],\n \"14:30\": [\n 0,\n 0\n ],\n \"14:31\": [\n 0,\n 0\n ],\n \"15:-32\": [\n 0,\n 0\n ],\n \"15:-31\": [\n 0,\n 0\n ],\n \"15:-30\": [\n 0,\n 0\n ],\n \"15:-29\": [\n 0,\n 0\n ],\n \"15:-28\": [\n 0,\n 0\n ],\n \"15:-27\": [\n 0,\n 0\n ],\n \"15:-26\": [\n 0,\n 0\n ],\n \"15:-25\": [\n 0,\n 0\n ],\n \"15:-24\": [\n 0,\n 0\n ],\n \"15:-23\": [\n 0,\n 0\n ],\n \"15:-22\": [\n 0,\n 0\n ],\n \"15:-21\": [\n 0,\n 0\n ],\n \"15:-20\": [\n 0,\n 0\n ],\n \"15:-19\": [\n 0,\n 0\n ],\n \"15:-18\": [\n 0,\n 0\n ],\n \"15:-17\": [\n 0,\n 0\n ],\n \"15:-16\": [\n 0,\n 0\n ],\n \"15:-15\": [\n 0,\n 0\n ],\n \"15:-14\": [\n 0,\n 0\n ],\n \"15:-13\": [\n 0,\n 0\n ],\n \"15:-12\": [\n 0,\n 0\n ],\n \"15:-11\": [\n 1.8251280169228292,\n 0\n ],\n \"15:-10\": [\n 1.6483521234608443,\n 0\n ],\n \"15:-9\": [\n 4.412599225869506,\n 0\n ],\n \"15:-8\": [\n 4.862486795511264,\n 0\n ],\n \"15:-7\": [\n 4.835361870676887,\n 0\n ],\n \"15:-6\": [\n 4.89811506771013,\n 0\n ],\n \"15:-5\": [\n 4.939690910023621,\n 0\n ],\n \"15:-4\": [\n 5.001865564562558,\n 0\n ],\n \"15:-3\": [\n 5.04078646135557,\n 0\n ],\n \"15:-2\": [\n 5.050755419760847,\n 0\n ],\n \"15:-1\": [\n 5.063895170857107,\n 0\n ],\n \"15:0\": [\n 5.067124250997929,\n 0\n ],\n \"15:1\": [\n 5.059688150423246,\n 0\n ],\n \"15:2\": [\n 5.063535632565637,\n 0\n ],\n \"15:3\": [\n 5.060429943758172,\n 0\n ],\n \"15:4\": [\n 5.053229388296117,\n 0\n ],\n \"15:5\": [\n 5.048115271417613,\n 0\n ],\n \"15:6\": [\n 5.031642453706952,\n 0\n ],\n \"15:7\": [\n 5.0205479812167715,\n 0\n ],\n \"15:8\": [\n 4.997101950940874,\n 0\n ],\n \"15:9\": [\n 4.799246827830573,\n 0\n ],\n \"15:10\": [\n 4.120913326629265,\n 0\n ],\n \"15:11\": [\n 0.7073999999999999,\n 0\n ],\n \"15:12\": [\n 0,\n 0\n ],\n \"15:13\": [\n 0,\n 0\n ],\n \"15:14\": [\n 0,\n 0\n ],\n \"15:15\": [\n 0,\n 0\n ],\n \"15:16\": [\n 0,\n 0\n ],\n \"15:17\": [\n 0,\n 0\n ],\n \"15:18\": [\n 0,\n 0\n ],\n \"15:19\": [\n 0,\n 0\n ],\n \"15:20\": [\n 0,\n 0\n ],\n \"15:21\": [\n 0,\n 0\n ],\n \"15:22\": [\n 0,\n 0\n ],\n \"15:23\": [\n 0,\n 0\n ],\n \"15:24\": [\n 0,\n 0\n ],\n \"15:25\": [\n 0,\n 0\n ],\n \"15:26\": [\n 0,\n 0\n ],\n \"15:27\": [\n 0,\n 0\n ],\n \"15:28\": [\n 0,\n 0\n ],\n \"15:29\": [\n 0,\n 0\n ],\n \"15:30\": [\n 0,\n 0\n ],\n \"15:31\": [\n 0,\n 0\n ],\n \"16:-32\": [\n 0,\n 0\n ],\n \"16:-31\": [\n 0,\n 0\n ],\n \"16:-30\": [\n 0,\n 0\n ],\n \"16:-29\": [\n 0,\n 0\n ],\n \"16:-28\": [\n 0,\n 0\n ],\n \"16:-27\": [\n 0,\n 0\n ],\n \"16:-26\": [\n 0,\n 0\n ],\n \"16:-25\": [\n 0,\n 0\n ],\n \"16:-24\": [\n 0,\n 0\n ],\n \"16:-23\": [\n 0,\n 0\n ],\n \"16:-22\": [\n 0,\n 0\n ],\n \"16:-21\": [\n 0,\n 0\n ],\n \"16:-20\": [\n 0,\n 0\n ],\n \"16:-19\": [\n 0,\n 0\n ],\n \"16:-18\": [\n 0,\n 0\n ],\n \"16:-17\": [\n 0,\n 0\n ],\n \"16:-16\": [\n 0,\n 0\n ],\n \"16:-15\": [\n 0,\n 0\n ],\n \"16:-14\": [\n 0,\n 0\n ],\n \"16:-13\": [\n 0,\n 0\n ],\n \"16:-12\": [\n 1.3860741576,\n 0\n ],\n \"16:-11\": [\n 1.6648911190242814,\n 0\n ],\n \"16:-10\": [\n 3.841996851682646,\n 0\n ],\n \"16:-9\": [\n -297.05858563378223,\n 4.905344995055737\n ],\n \"16:-8\": [\n -296.29014017365745,\n 4.8831957052040895\n ],\n \"16:-7\": [\n -295.3942846230416,\n 4.323268497620353\n ],\n \"16:-6\": [\n 4.96688160303251,\n 0\n ],\n \"16:-5\": [\n 4.962720720212437,\n 0\n ],\n \"16:-4\": [\n 5.008156878335237,\n 0\n ],\n \"16:-3\": [\n 5.026161132909515,\n 0\n ],\n \"16:-2\": [\n 5.034330799556614,\n 0\n ],\n \"16:-1\": [\n 5.043662718404173,\n 0\n ],\n \"16:0\": [\n 5.0417338477065705,\n 0\n ],\n \"16:1\": [\n 5.037887267208086,\n 0\n ],\n \"16:2\": [\n 5.0405801921751,\n 0\n ],\n \"16:3\": [\n 5.0376158145160765,\n 0\n ],\n \"16:4\": [\n 5.02678499514325,\n 0\n ],\n \"16:5\": [\n 5.025492959660514,\n 0\n ],\n \"16:6\": [\n 5.013830767466705,\n 0\n ],\n \"16:7\": [\n 5.008332538110877,\n 0\n ],\n \"16:8\": [\n 4.949857634794563,\n 0\n ],\n \"16:9\": [\n 4.751079485341312,\n 0\n ],\n \"16:10\": [\n 3.6193612018751047,\n 0\n ],\n \"16:11\": [\n 0.3,\n 0\n ],\n \"16:12\": [\n 0,\n 0\n ],\n \"16:13\": [\n 0,\n 0\n ],\n \"16:14\": [\n 0,\n 0\n ],\n \"16:15\": [\n 0,\n 0\n ],\n \"16:16\": [\n 0,\n 0\n ],\n \"16:17\": [\n 0,\n 0\n ],\n \"16:18\": [\n 0,\n 0\n ],\n \"16:19\": [\n 0,\n 0\n ],\n \"16:20\": [\n 0,\n 0\n ],\n \"16:21\": [\n 0,\n 0\n ],\n \"16:22\": [\n 0,\n 0\n ],\n \"16:23\": [\n 0,\n 0\n ],\n \"16:24\": [\n 0,\n 0\n ],\n \"16:25\": [\n 0,\n 0\n ],\n \"16:26\": [\n 0,\n 0\n ],\n \"16:27\": [\n 0,\n 0\n ],\n \"16:28\": [\n 0,\n 0\n ],\n \"16:29\": [\n 0,\n 0\n ],\n \"16:30\": [\n 0,\n 0\n ],\n \"16:31\": [\n 0,\n 0\n ]\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar S1; // 上一次的狀態\nvar A; // 上一次的行為\nvar S2; // 這次的狀態\nvar alpha = 0.3; // 學習速率\nvar beta = 0.8; // 獎勵延遲\n\nforever(function () {\n print(\"Deads: \" + diecount, 10, 100, \"white\", 20)\n var apple = game.getApple()\n S2 = getStatus(bird, apple)\n // print(S2, 100, 10, \"white\", 30)\n if (bird.touched(ground) || bird.touched(pipes)) {\n game.restart();\n reward(S1, A, S2, -1000)\n diecount += 1;\n }\n\n if (bird.touched(apple)) {\n apple.hidden = true\n reward(S1, A, S2, 50)\n } else {\n reward(S1, A, S2, 1)\n }\n\n if (Q[S2][0] \u003c Q[S2][1]) {\n A = 1\n bird.jump()\n } else {\n A = 0\n }\n\n S1 = S2\n \n});\n\n// 根據鳥與蘋果的相對位置來作為「狀態」\nfunction getStatus (bird, apple) {\n var x = apple.X - bird.X\n var y = apple.Y - bird.Y\n return x + \":\" + y\n\n}\n\n// 獎勵懲罰來更新 Q 大腦\nfunction reward (S1, A, S2, R) {\n var mr = Math.max(Q[S2][0], Q[S2][1])\n Q[S1][A] = Q[S1][A] + (1 - alpha) + alpha * (R + beta * mr)\n}","created_at":"2020-11-08T13:32:06.875+08:00","updated_at":"2023-11-14T12:50:32.365+08:00","name":"flappy bird Q-learning 副本","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/202761/26d42a5435a8519f5bc90b215d658e53.jpg"},"parent_id":65053,"plugin":"setBackdrop('bg.png');\nvar bestpoint = 0\nvar total = 0\nvar w = 0\n// Brain\nfunction Brain () {\n var w = 16;\n var h = 32;\n var obj = {};\n obj['undefined'] = [0, 0];\n for (var x = -1; x \u003c w + 1; x++) {\n for (var y=-h; y \u003c h; y++) {\n obj[x + ':' + y] = [0, 0];\n }\n }\n return obj;\n}\n\nvar game = (() =\u003e {\n\n let speed = 5; // 速度\n let points = 0; // 分數\n let space = 720/3; // 720/3 為三組水管之間的間隔\n let targetApple; // 鳥前面最近的蘋果\n let gravity = 0.25; // 引力\n let gameStatus = 'playing'; // 遊戲狀態 playing: 進行中 stop: 死亡\n\n let apple1 = createSprite('apple.png');\n let apple2 = createSprite('apple.png');\n let apple3 = createSprite('apple.png');\n let apples = [apple1, apple2, apple3];\n\n let pipe1 = createSprite('pipe.png');\n let pipe2 = createSprite('pipe.png');\n let pipe3 = createSprite('pipe.png');\n let pipe4 = createSprite('pipe.png');\n let pipe5 = createSprite('pipe.png');\n let pipe6 = createSprite('pipe.png');\n pipe2.direction = -90;\n pipe4.direction = -90;\n pipe6.direction = -90;\n\n let ground1 = createSprite('ground.png');\n let ground2 = createSprite('ground.png');\n ground1.y = 450;\n ground2.y = 450;\n\n let bird = createSprite('bird.png');\n bird.x = 200;\n bird.vy = 0;\n bird.scale = 0.8;\n\n bird.jump = function () {\n bird.vy = -4+.5;\n }\n\n // bird.on('touch', [pipe1, pipe2, pipe3, pipe4, pipe5, pipe6, ground1, ground2], () =\u003e gameStatus = 'stop');\n\n forever(()=\u003e {\n\n \n // Sprite.x -\u003e Sprite.x\n [bird, apple1, apple2, apple3].forEach(function(s) {\n s.X = Math.floor(s.x/15);\n s.Y = Math.floor(s.y/15);\n });\n\n game.gameStatus = gameStatus; // suck\n\n pipe1.moveTo(apple1);\n pipe1.y -= 270;\n pipe1.x -= 25;\n pipe2.moveTo(apple1);\n pipe2.y += 270;\n pipe2.x -= 25;\n\n pipe3.moveTo(apple2);\n pipe3.y -= 270;\n pipe3.x -= 25;\n pipe4.moveTo(apple2);\n pipe4.y += 270;\n pipe4.x -= 25;\n\n pipe5.moveTo(apple3);\n pipe5.y -= 270;\n pipe5.x -= 25;\n pipe6.moveTo(apple3);\n pipe6.y += 270;\n pipe6.x -= 20;\n\n if (gameStatus === 'playing') {\n\n bird.vy += gravity;\n bird.y += bird.vy;\n\n ground1.x -= speed;\n ground2.x -= speed;\n if (ground1.x \u003c -320) ground1.x += 1280;\n if (ground2.x \u003c -320) ground2.x += 1280;\n\n apples.forEach((apple) =\u003e {\n apple.x -= speed;\n apple.opacity = .3;\n\n if (apple.x \u003c -30) {\n apple.x += space*3;\n apple.y = Math.random() * 150 + 110;\n apple.hidden = false;\n };\n });\n }\n\n // 取的眼前最近的蘋果\n targetApple = apples\n .filter((a) =\u003e {\n return a.x \u003e bird.x\n })\n .sort((a1, a2) =\u003e {\n return a1.x - a2.x\n })[0];\n\n targetApple.opacity = 1;\n\n if (targetApple.x \u003e bird.x \u0026\u0026 targetApple.x - bird.x \u003c speed*2) {\n points++;\n total++\n }\n\n if (game.displayApple == false) {\n apple1.opacity = 0;\n apple2.opacity = 0;\n apple3.opacity = 0;\n }\n if (points \u003e bestpoint) {\n bestpoint = points\n }\n \n print(\"score: \" + points, 10, 10, 'white', 20);\n print(\"best score: \" + bestpoint, 10, 50, \"white\", 20)\n\n });\n\n function restart() {\n bird.y = 240;\n bird.vy = 0;\n apple1.x = space*1 + 200;\n apple1.y = Math.random() * 150 + 110\n apple2.x = space*2 + 200;\n apple2.y = Math.random() * 150 + 110\n apple3.x = space*3 + 200;\n apple3.y = Math.random() * 150 + 110\n points = 0;\n apple1.hidden = false;\n apple2.hidden = false;\n apple3.hidden = false;\n ground1.x = 320;\n ground2.x = 320 + 640;\n gameStatus = 'playing';\n \n }\n\n function getApple () {\n return targetApple;\n }\n\n return {\n restart: restart,\n bird: bird,\n getApple: getApple,\n displayApple: false,\n pipes: [pipe1, pipe2, pipe3, pipe4, pipe5, pipe6],\n ground: [ground1, ground2],\n }\n})();\n\nvar bird = game.bird;\nvar ground = game.ground;\nvar pipes = game.pipes;\ngame.restart();\n","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":37,"hashid":"d5msvwde6","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3502083,"file_name":"bg.png","project_id":202761,"asset_id":117221,"created_at":"2020-11-08T13:32:06.881+08:00","updated_at":"2020-11-08T13:32:06.881+08:00"},{"id":3502084,"file_name":"bird.png","project_id":202761,"asset_id":117222,"created_at":"2020-11-08T13:32:06.882+08:00","updated_at":"2020-11-08T13:32:06.882+08:00"},{"id":3502085,"file_name":"ground.png","project_id":202761,"asset_id":117223,"created_at":"2020-11-08T13:32:06.883+08:00","updated_at":"2020-11-08T13:32:06.883+08:00"},{"id":3502086,"file_name":"pipe.png","project_id":202761,"asset_id":117224,"created_at":"2020-11-08T13:32:06.885+08:00","updated_at":"2020-11-08T13:32:06.885+08:00"},{"id":3502087,"file_name":"apple.png","project_id":202761,"asset_id":117225,"created_at":"2020-11-08T13:32:06.886+08:00","updated_at":"2020-11-08T13:32:06.886+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦