{"id":212598,"student_id":10,"content":"from game import *\nfrom random import randrange\n\nslot = create_sprite('slot.png', 'slot.png')\na = create_sprite('0.png', '1.png', '2.png', '3.png', '4.png', '5.png', '6.png', '7.png')\nb = create_sprite('0.png', '1.png', '2.png', '3.png', '4.png', '5.png', '6.png', '7.png')\nc = create_sprite('0.png', '1.png', '2.png', '3.png', '4.png', '5.png', '6.png', '7.png')\n\nrand1 = 0\nrand2 = 0\nrand3 = 0\n\na.y -= 10\na.x -= 70\nb.y -= 10\nc.y -= 10\nc.x += 70\n\ndef pull ():\n global rand1, rand2, rand3\n \n rand1 = 100 + randrange(32)\n rand2 = rand1 + randrange(32)\n rand3 = rand2 + randrange(32)\n\n\ndef loop ():\n global rand1, rand2, rand3\n \n if rand1 \u003e 0:\n rand1 -= 1\n a.next_costume()\n \n if rand2 \u003e 0:\n rand2 -= 1\n b.next_costume()\n \n if rand3 \u003e 0: \n rand3 -= 1\n c.next_costume()\n \n if rand1 == 0 and rand2 == 0 and rand3 == 0:\n setBackdrop('black')\n else :\n setBackdrop('red')\n \n\non('click', pull)\nforever(loop)","created_at":"2020-12-17T11:02:41.865+08:00","updated_at":"2020-12-17T11:30:35.825+08:00","name":"角子老虎機","language":"python","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/212598/b613ee556debf481f3934be1e72b7234.jpg"},"parent_id":208528,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":256,"hashid":"9ygspp4p6","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3724054,"file_name":"3.png","project_id":212598,"asset_id":177406,"created_at":"2020-12-17T11:02:41.878+08:00","updated_at":"2020-12-17T11:02:41.878+08:00"},{"id":3724046,"file_name":"6.png","project_id":212598,"asset_id":177409,"created_at":"2020-12-17T11:02:41.870+08:00","updated_at":"2020-12-17T11:02:41.870+08:00"},{"id":3724047,"file_name":"7.png","project_id":212598,"asset_id":177410,"created_at":"2020-12-17T11:02:41.872+08:00","updated_at":"2020-12-17T11:02:41.872+08:00"},{"id":3724048,"file_name":"0.png","project_id":212598,"asset_id":177403,"created_at":"2020-12-17T11:02:41.873+08:00","updated_at":"2020-12-17T11:02:41.873+08:00"},{"id":3724049,"file_name":"1.png","project_id":212598,"asset_id":177404,"created_at":"2020-12-17T11:02:41.874+08:00","updated_at":"2020-12-17T11:02:41.874+08:00"},{"id":3724050,"file_name":"slot.png","project_id":212598,"asset_id":177411,"created_at":"2020-12-17T11:02:41.874+08:00","updated_at":"2020-12-17T11:02:41.874+08:00"},{"id":3724051,"file_name":"4.png","project_id":212598,"asset_id":177407,"created_at":"2020-12-17T11:02:41.875+08:00","updated_at":"2020-12-17T11:02:41.875+08:00"},{"id":3724052,"file_name":"5.png","project_id":212598,"asset_id":177408,"created_at":"2020-12-17T11:02:41.876+08:00","updated_at":"2020-12-17T11:02:41.876+08:00"},{"id":3724053,"file_name":"2.png","project_id":212598,"asset_id":177405,"created_at":"2020-12-17T11:02:41.877+08:00","updated_at":"2020-12-17T11:02:41.877+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦