[{"data":1,"prerenderedAt":337},["ShallowReactive",2],{"project-21701124":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":27,"sentiment":28,"stance_mix":29,"scored_comments":34,"aspects":35,"strip":43,"post_text":44,"what":45,"said":71,"maker_in_thread":167,"shape":176,"grid":181,"attempts":292,"same_week":300,"maker_shows":328,"maker_hidden":329,"reader_version":330,"card":331},"21701124","googol","Learn When to Quit","title","Show HN: Learn When to Quit","https:\u002F\u002Fgithub.com\u002Fvictorqribeiro\u002Fgoogol","github.com","atum47",1575456120,2019,147,44,294,2195,14,"notable","games","educational browser game","web_app",[24,25,5,26],"optimal stopping","secretary problem","probability game","roasted",-0.417,{"positive":30,"neutral":31,"mixed":32,"critical":33},2,8,0,10,20,{"idea":36,"execution":39,"design":40,"docs":42},{"positive":37,"critical":38},1,3,{"positive":32,"critical":30},{"positive":37,"critical":41},5,{"positive":32,"critical":32},[32,32,38,38,38,38,37,32,32,32,32,32,32,32,32,32,37,41,32,37,32,41,32,32,37,37,38,37,38,32,38,32,37,32,32,37,32,32,37,38],null,{"problem":46,"audience":44,"pricing":44,"motivation":44,"time_to_build":44,"stack":57,"openness":69,"stage":70,"team_size":70},{"value":47,"source":48,"evidence":49},"Teaches the optimal stopping strategy for choosing the highest number.","inferred",[50,53],{"id":51,"by":11,"text":52},"21732643","Did you watch the video? It does a very good job explaining the theory tested on the game.",{"id":54,"by":55,"text":56},"21732183","shaftoe","This is the Secretary Problem. https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FSecretary_problem",[58],{"value":59,"source":60,"evidence":61},"JavaScript","commenter",[62,65],{"id":63,"by":11,"text":64},"21732763","People, I just ran this simple script on my terminal using Node and I got a pretty uniform result. ``` a = {} for(let i = 0; i \u003C 100000; i++){ let n = Math.floor(Math.random() *…",{"id":66,"by":67,"text":68},"21732695","GistNoesis","The distribution chosen here is ~ uniform for the number of digits. (https:\u002F\u002Fgithub.com\u002Fvictorqribeiro\u002Fgoogol\u002Fblob\u002Fmaster\u002Fjs\u002Fmain.js#L10 ) This is not the same hypothesis as the…","open_source","unknown",{"praise":72,"objections":84,"requests":126,"questions":146,"alternatives":161},[73],{"value":74,"source":60,"evidence":75},"Good way to learn the concept",[76,80],{"id":77,"by":78,"text":79},"21735222","h1fra","Very interesting, especially the video :pray: (actual game does not look at all like the screenshot on mac\u002Fchrome)",{"id":81,"by":82,"text":83},"21733275","cyode","Having a button to toggle on\u002Foff rounded e-notation (e.g. 1.2365479e+45) could make comparison easier as well. Nice job with this, I learned something new today :)",[85,96,107,115],{"value":86,"source":60,"evidence":87},"Number generation is biased toward smaller numbers",[88,92],{"id":89,"by":90,"text":91},"21732389","trisiak","The distribution of numbers is not uniform across the 0..googol here. The implementation first chooses the length of the number, then fills in the digits. This makes it biased…",{"id":93,"by":94,"text":95},"21732678","fourthark","Consider a two digit number. With this algorithm, half of the numbers generated will be less than 10, and half will be 11-99. Likewise with the full 100 digits this algorithm has…",{"value":97,"source":60,"evidence":98},"Large numbers are hard to compare visually",[99,103],{"id":100,"by":101,"text":102},"21734710","sneak","All of these huge numbers are basically un-comparable ergonomically to me. Why not make the distribution 1-10k instead?",{"id":104,"by":105,"text":106},"21732464","iakh","Consider using a monospace font. It is difficult to tell how large one number is relative to another when each digit has a different width",{"value":108,"source":60,"evidence":109},"Optimal stopping strategy fails for known distributions",[110,114],{"id":111,"by":112,"text":113},"21732867","repsilat","It isn't optimal for known distributions. If you're sampling from a normal distribution with known parameters, and the first of 100 samples is 5 standard deviations above the…",{"id":66,"by":67,"text":68},{"value":116,"source":60,"evidence":117},"Interface is confusing with multiple buttons",[118,122],{"id":119,"by":120,"text":121},"21734802","hmexx","Agreed. Also, there is really no reason to have multiple boxes you have to click. You could just have a single \"next\" button along with a counter to show how many choices you…",{"id":123,"by":124,"text":125},"21735613","OJFord","Yeah that confused me too. 'Next' button along with '# samples left' display would be much clearer. Also, if the largest drawn so far were highlighted, manual play would be easier.",[127,131,135,139],{"value":128,"source":60,"evidence":129},"Use monospace font",[130],{"id":104,"by":105,"text":106},{"value":132,"source":60,"evidence":133},"Use a single Next button with a counter",[134],{"id":119,"by":120,"text":121},{"value":136,"source":60,"evidence":137},"Highlight the largest number drawn so far",[138],{"id":123,"by":124,"text":125},{"value":140,"source":60,"evidence":141},"Use comma separators and right-align numbers",[142],{"id":143,"by":144,"text":145},"21733063","rkagerer","Comma's would be friendlier than decimal groupings for North American users; also right-aligning would be nice.",[147,154],{"value":148,"source":60,"evidence":149},"How does this relate to the post?",[150],{"id":151,"by":152,"text":153},"21734959","ajushi","I don't get it sorry. How does this relate with the OP?",{"value":155,"source":60,"evidence":156},"What is the goal and how do you win?",[157],{"id":158,"by":159,"text":160},"21732624","smabie","I don’t understand, could some one explain? What am I trying to do in this game? And how do I win?",[162],{"value":163,"source":60,"evidence":164},"Secretary problem as described in Wikipedia and the linked video",[165,166],{"id":54,"by":55,"text":56},{"id":51,"by":11,"text":52},{"comments":31,"answered":30,"key":168},[169,172,175],{"id":170,"text":171},"21732609",">\"The implementation first chooses the length of the number, then fills in the digits. This makes it biased towards smaller numbers.\" Why?",{"id":173,"text":174},"21732693","Damn...",{"id":63,"text":64},{"commenters":177,"max_depth":178,"maker_replies":31,"first_comment_mins":179,"lifespan_hours":180},32,7,4867,102,[182,186,189,191,193,196,199,201,203,206,208,210,212,215,217,219,222,224,225,229,231,233,235,238,240,244,248,249,250,252,256,259,263,265,267,269,273,276,279,280,284,286,288,290],[183,32,32,184,185,32],"21732616","other\u002Fneutral\u002Fnone","ronilan",[187,32,32,184,188,32],"21732962","chrisweekly",[151,32,38,190,152,32],"project\u002Fneutral\u002Fnone",[54,37,38,192,55,32],"project\u002Fneutral\u002Fidea",[194,37,38,192,195,32],"21733567","lqdc13",[197,37,38,192,198,32],"21734532","larnmar",[89,30,37,200,90,32],"project\u002Fcritical\u002Fexecution",[170,30,32,202,11,37],"commenter\u002Fneutral\u002Fexecution",[204,30,32,184,205,32],"21732669","bentona",[173,30,32,207,11,37],"commenter\u002Fneutral\u002Fnone",[63,30,32,209,11,37],"commenter\u002Fcritical\u002Fexecution",[211,30,32,209,94,32],"21733388",[213,30,32,209,214,32],"21733603","peteretep",[216,30,32,202,11,37],"21733798",[218,30,32,207,205,32],"21734408",[220,30,32,184,221,32],"21734471","jbay808",[223,30,32,184,205,32],"21736259",[93,30,37,200,94,32],[226,30,41,227,228,32],"21732655","project\u002Fpositive\u002Fidea","teraflop",[111,30,32,230,112,32],"commenter\u002Fcritical\u002Fidea",[66,30,37,232,67,32],"project\u002Fcritical\u002Fidea",[104,38,37,234,105,32],"project\u002Fcritical\u002Fdesign",[236,38,32,237,11,37],"21732638","maker\u002Fpositive\u002Fdesign",[81,38,41,239,82,32],"project\u002Fpositive\u002Fdesign",[241,242,32,184,243,32],"21732353",4,"cjauvin",[245,242,32,246,247,32],"21732847","other\u002Fpositive\u002Fnone","leetrout",[100,41,37,234,101,32],[119,41,37,234,120,32],[123,41,38,251,124,32],"project\u002Fneutral\u002Fdesign",[253,254,37,232,255,32],"21735349",6,"glaive123",[257,178,38,192,258,32],"21732425","curo",[260,178,32,261,262,32],"21732536","commenter\u002Fneutral\u002Fidea","anonymousiam",[264,178,32,261,112,32],"21732906",[158,31,38,266,159,32],"project\u002Fneutral\u002Fdocs",[51,31,32,268,11,37],"maker\u002Fneutral\u002Fdocs",[270,271,37,232,272,32],"21733842",9,"whack",[274,271,32,261,275,32],"21733862","spencey",[277,271,32,261,278,32],"21733867","codetrotter",[77,33,37,234,78,32],[281,282,32,184,283,32],"21733392",11,"flurdy",[285,282,32,184,11,37],"21736667",[143,287,37,234,144,32],12,[289,287,32,237,11,37],"21733294",[291,287,38,251,124,32],"21735633",[293,296,299],{"id":294,"t":295,"points":37,"comments":32},"19518815",1553828812,{"id":297,"t":298,"points":38,"comments":32},"20585940",1564679324,{"id":4,"t":12,"points":14,"comments":15},[301,305,310,315,319,324],{"id":302,"name":303,"points":304,"category":20},"21676933","ChessRoots",295,{"id":306,"name":307,"points":308,"category":309},"21682331","Vaex",264,"data",{"id":311,"name":312,"points":313,"category":314},"21707285","Parrot.vc",263,"ai",{"id":316,"name":317,"points":318,"category":20},"21696194","Adventurekeep",182,{"id":320,"name":321,"points":322,"category":323},"21670239","Dot-to-ASCII",152,"dev_tools",{"id":325,"name":326,"points":327,"category":323},"21656864","Zecoda",140,53,false,"v2",{"id":332,"name":5,"line":6,"ai":329,"cat":20,"year":13,"points":14,"comments":15,"rec":27,"s":333,"top":18,"kw":334,"maker":11,"domain":10,"tier":19,"attempts":38,"strip":335,"url":9,"mix":336,"praise":74,"objection":86,"sub":21},21701124,-0.42,[24,25,5,26],"0033331000000000150105001131303010010013",[30,31,32,33],1794036583632]