[{"data":1,"prerenderedAt":500},["ShallowReactive",2],{"project-30051902":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":33,"aspects":34,"strip":44,"post_text":46,"what":47,"said":67,"maker_in_thread":198,"shape":210,"grid":213,"attempts":450,"same_week":461,"maker_shows":491,"maker_hidden":492,"reader_version":493,"card":494},"30051902","bangBang","Shoot the neural network before it shoots you","title","Show HN: Shoot the neural network before it shoots you","https:\u002F\u002Fgithub.com\u002Fvictorqribeiro\u002FbangBang","github.com","atum47",1642981451,2022,146,88,414,2570,17,"notable","games","artillery game","web_app",[21,24,25,26],"neural network","javascript game","browser game","debated",-0.077,{"positive":30,"neutral":31,"mixed":32,"critical":31},12,14,3,43,{"performance":35,"execution":38,"idea":40,"design":42},{"positive":36,"critical":37},1,5,{"positive":36,"critical":39},4,{"positive":41,"critical":36},6,{"positive":43,"critical":39},2,[37,45,36,32,36,37,45,37,36,32,36,37,32,37,45,45,45,37,45,45,37,32,32,32,37,36,36,37,36,45,45,32,37,37,45,36,45,36,32,32],0,null,{"problem":46,"audience":46,"pricing":46,"motivation":46,"time_to_build":46,"stack":48,"openness":64,"stage":65,"team_size":66},[49,57],{"value":50,"source":51,"evidence":52},"JavaScript","commenter",[53],{"id":54,"by":55,"text":56},"30053002","teebs","Looks like it's written by hand in raw JS. Here's the training loop: https:\u002F\u002Fgithub.com\u002Fvictorqribeiro\u002FbangBang\u002Fblob\u002Fmaster\u002Fjs\u002FDejavu.js#L64 and here's matrix multiplication:…",{"value":58,"source":59,"evidence":60},"Dejavu toy neural network library","maker",[61],{"id":62,"by":11,"text":63},"30053437","Yep, dejavu is my toy neural network that I use for small and experimental projects like this","open_source","launched","solo",{"praise":68,"objections":99,"requests":144,"questions":163,"alternatives":175},[69,84],{"value":70,"source":51,"evidence":71},"Fun, simple game with an interesting learning opponent",[72,76,80],{"id":73,"by":74,"text":75},"30052734","abalaji","This is a really neat little game--racing to figure out the controls before the AI shoots you is pretty fun. Here's the direct link to the game from the README.md [1] [1]…",{"id":77,"by":78,"text":79},"30053412","worik","Fun! Nice to win against the machine....",{"id":81,"by":82,"text":83},"30052357","idinnoaname","Very cool! I was slightly confused when I aimed right at the opponent at full force and was prompted to click to restart. Definitely was a bit more interesting once I stopped…",{"value":85,"source":51,"evidence":86},"Nostalgic for Bang Bang and gorillas.bas artillery games",[87,91,95],{"id":88,"by":89,"text":90},"30052445","29athrowaway","See also - gorillas.bas (QBasic demo) https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=lyBD0X81tjk - Bang Bang (for Windows 3.1) https:\u002F\u002Fyoutu.be\u002FYOa5X0AfvLk?t=548",{"id":92,"by":93,"text":94},"30054890","amoe_","As a kid I used to love playing this game (\"Bang Bang\") in Windows 3.1, I'm glad that someone else remembers it.",{"id":96,"by":97,"text":98},"30056410","darkwater","I spent too many hours playing gorillas.bas on my PS\u002F2",[100,111,122,137],{"value":101,"source":51,"evidence":102},"Broken or unplayable on mobile Safari and in some window sizes",[103,107],{"id":104,"by":105,"text":106},"30054003","setr","Seems like it might be broken on iphone (safari)? It’s placing two tanks on a blank background directly next to each other every match, and it’s trivially won every match by just…",{"id":108,"by":109,"text":110},"30056032","wruza","It behaves randomly on ios safari, tried portrait and album mode. Tapping to shoot works, but when you drag, vertically, horizontally, otherwise, it either does nothing, or…",{"value":112,"source":51,"evidence":113},"Too easy to win at max power on narrow or horizontal screens",[114,118],{"id":115,"by":116,"text":117},"30054183","quickthrower2","Max power, horizontal, wins every time.",{"id":119,"by":120,"text":121},"30057360","account-5","Am I playing this wrong? Fire forward max power always wins. Computer doesn't get a go.",{"value":123,"source":51,"evidence":124},"Impossible to hit on large monitors and high resolutions",[125,129,133],{"id":126,"by":127,"text":128},"30052601","adverbly","Anyone else play on a huge monitor and realize that you couldn't hit the enemy even at max power and perfect angle? Can't help but feel like the AI won after all...",{"id":130,"by":131,"text":132},"30053044","throwawayhaxor","Was amused to realize this depends on initial window size. My monitor is so large it was impossible to hit each other, even at 100% power and optimal angle.",{"id":134,"by":135,"text":136},"30053490","umvi","At 1440p, it is impossible for the computer to win but easy for me to win",{"value":138,"source":51,"evidence":139},"Too fast on 144 Hz displays",[140],{"id":141,"by":142,"text":143},"30053045","ethpkm","It's also too fast on 144 hz display.",[145,152],{"value":146,"source":51,"evidence":147},"Add walls or obstacles in the way",[148],{"id":149,"by":150,"text":151},"30052378","alexnewman","Almost posted an identical comment. They should have a wall in the way",{"value":153,"source":51,"evidence":154},"Let the AI learn across games or from the human player",[155,159],{"id":156,"by":157,"text":158},"30053678","oliv__","Super cool but I feel like my own (human) neural network only needed 1 game to get the hang of it and be better than the machine. So it went like this: closely lost the first…",{"id":160,"by":161,"text":162},"30055447","unobatbayar","It would be really cool if it also learned from the human player's failures",[164],{"value":165,"source":51,"evidence":166},"What are the neural network's inputs and outputs",[167,171],{"id":168,"by":169,"text":170},"30055213","chs20","What is the input and output data of the neural network?",{"id":172,"by":173,"text":174},"30053180","remram","A no-input two-output deterministic optimization problem is a \"neural network\"? What are the parameters? What would the layers possibly do if there's more than one? edit: I…",[176,180,184,191],{"value":177,"source":51,"evidence":178},"Gorillas.bas (QBasic)",[179],{"id":88,"by":89,"text":90},{"value":181,"source":51,"evidence":182},"Bang! Bang! for Windows 3.1",[183],{"id":88,"by":89,"text":90},{"value":185,"source":51,"evidence":186},"Gravity Wars",[187],{"id":188,"by":189,"text":190},"30109542","yboris","For those who like artillery games, I hope you've come across Gravity Wars - where planets affect the path of your projectile. I loved the game so much, it's what inspired me to…",{"value":192,"source":51,"evidence":193},"VGA Bomber",[194],{"id":195,"by":196,"text":197},"30057851","Brendinooo","On one of my first computers, there was a game called VGA Bomber which was basically this. I'm sure it's a genre and there are a million variants of it, but for some reason I…",{"comments":199,"answered":37,"key":200},19,[201,204,207],{"id":202,"text":203},"30051965","How to play On Desktop Left and Right arrows rotate the cannon. Up and Down arrows increase and decrease the strenght of the projectile. SpaceBar shoots. On Mobile Touch and drag…",{"id":205,"text":206},"30053751","Yes, it does reset every new game https:\u002F\u002Fgithub.com\u002Fvictorqribeiro\u002FbangBang\u002Fblob\u002Fmaster\u002Fjs\u002Fmain.js#L65",{"id":208,"text":209},"30065903","Not gonna lie, this is not the first time I've been accused of being a bot",{"commenters":211,"max_depth":41,"maker_replies":199,"first_comment_mins":43,"lifespan_hours":212},58,99,[214,218,222,225,228,230,232,236,239,240,243,245,249,251,254,257,258,262,263,265,267,270,273,276,278,281,284,288,292,294,298,301,305,309,312,315,316,318,319,322,324,327,330,333,335,338,340,342,344,346,349,352,356,359,361,363,366,368,370,373,377,379,380,382,386,390,392,394,396,398,402,404,406,407,408,411,413,416,419,421,424,426,429,431,434,436,438,441,445],[215,45,37,216,217,45],"30052934","project\u002Fpositive\u002Fperformance","ineedasername",[219,45,45,220,221,45],"30053011","commenter\u002Fneutral\u002Fnone","skynet_v2",[223,45,45,220,224,45],"30053063","satori99",[226,45,45,227,217,45],"30060916","other\u002Fneutral\u002Fnone",[202,36,45,229,11,36],"project\u002Fneutral\u002Fdocs",[104,36,36,231,105,45],"project\u002Fcritical\u002Fexecution",[233,36,32,234,235,45],"30055474","project\u002Fneutral\u002Fexecution","dwohnitmok",[237,36,32,234,238,45],"30058021","omnicognate",[108,36,36,231,109,45],[241,36,45,220,242,45],"30057053","jimjambw",[244,36,45,227,109,45],"30057450",[246,43,37,247,248,45],"30053657","project\u002Fpositive\u002Fidea","vaishnavsm",[205,43,45,250,11,36],"maker\u002Fneutral\u002Fexecution",[252,43,45,220,253,45],"30053928","serioussecurity",[255,43,45,220,256,45],"30053989","jondwillis",[208,43,45,227,11,36],[259,32,37,260,261,45],"30056020","maker\u002Fpositive\u002Fnone","belter",[126,39,36,231,127,45],[264,39,45,250,11,36],"30052625",[141,39,36,266,142,45],"project\u002Fcritical\u002Fperformance",[268,39,45,269,11,36],"30053118","maker\u002Fneutral\u002Fperformance",[271,39,32,269,272,45],"30054749","AlexAndScripts",[274,39,32,269,275,45],"30056305","azeirah",[172,37,36,277,173,45],"project\u002Fcritical\u002Fidea",[279,37,45,280,11,36],"30053226","maker\u002Fneutral\u002Fdesign",[282,37,37,247,283,45],"30054834","mellavora",[285,41,32,286,287,45],"30052721","project\u002Fmixed\u002Fidea","rl3",[289,290,32,291,55,45],"30053020",7,"project\u002Fneutral\u002Fperformance",[293,290,45,280,11,36],"30053036",[295,296,37,247,297,45],"30053291",8,"madrox",[299,296,45,300,11,36],"30053319","maker\u002Fneutral\u002Fnone",[302,296,45,303,304,45],"30054166","commenter\u002Fneutral\u002Fperformance","Houshalter",[306,307,45,227,308,45],"30056614",9,"martin_a",[310,307,45,227,311,45],"30056677","YeGoblynQueenne",[88,313,45,314,89,45],10,"other\u002Fpositive\u002Fnone",[92,313,45,314,93,45],[317,313,45,227,89,45],"30062723",[96,313,45,314,97,45],[320,313,45,314,321,45],"30056804","matsemann",[73,323,37,247,74,45],11,[325,323,45,326,11,36],"30052791","maker\u002Fneutral\u002Fdocs",[328,30,45,227,329,45],"30055558","nils-m-holm",[331,30,45,227,332,45],"30057839","4gotunameagain",[188,334,45,314,189,45],13,[336,31,45,337,11,36],"30051925","project\u002Fneutral\u002Fidea",[81,31,37,339,82,45],"project\u002Fpositive\u002Fdesign",[341,31,45,250,11,36],"30052377",[149,31,32,343,150,45],"project\u002Fneutral\u002Fdesign",[345,31,45,280,11,36],"30052539",[347,31,32,343,348,45],"30062685","webmaven",[350,31,32,343,351,45],"30054067","asab",[353,354,32,286,355,45],"30052806",15,"teitoklien",[357,354,45,358,11,36],"30052828","maker\u002Fpositive\u002Fdesign",[360,354,37,358,355,45],"30052942",[156,362,32,286,157,45],16,[364,362,45,365,11,36],"30053696","maker\u002Fneutral\u002Fidea",[130,18,36,367,131,45],"project\u002Fcritical\u002Fdesign",[369,18,45,280,11,36],"30053076",[371,18,36,367,372,45],"30053158","Sebb767",[374,375,36,367,376,45],"30052213",18,"gus_massa",[378,375,45,365,11,36],"30052265",[195,199,37,247,196,45],[134,381,36,266,135,45],20,[383,384,36,231,385,45],"30055228",21,"tiborsaas",[387,384,45,388,389,45],"30055529","commenter\u002Fneutral\u002Fexecution","hutzlibu",[391,384,45,388,385,45],"30056187",[393,384,45,388,389,45],"30056404",[395,384,45,388,385,45],"30056519",[397,384,45,388,389,45],"30056674",[399,400,32,234,401,45],"30052912",22,"czbond",[403,400,45,247,11,36],"30052970",[405,400,37,247,401,45],"30057727",[54,400,32,234,55,45],[62,400,45,234,11,36],[409,400,37,410,401,45],"30057689","maker\u002Fpositive\u002Fexecution",[412,400,45,260,11,36],"30110020",[414,400,45,227,415,45],"30053143","Aspos",[417,400,45,418,401,45],"30057711","commenter\u002Fpositive\u002Fnone",[115,420,36,266,116,45],23,[422,420,36,367,423,45],"30054218","menage",[425,420,45,220,116,45],"30054251",[427,420,45,220,428,45],"30054304","silisili",[119,430,36,266,120,45],24,[432,430,32,337,433,45],"30057719","istjohn",[160,435,32,337,161,45],25,[168,437,32,337,169,45],26,[77,439,37,440,78,45],27,"project\u002Fpositive\u002Fnone",[442,443,36,266,444,45],"30053917",28,"esjeon",[446,447,32,448,449,45],"30054195",29,"project\u002Fneutral\u002Fnone","dluan",[451,454,457,460],{"id":452,"t":453,"points":36,"comments":36},"29678716",1640387794,{"id":455,"t":456,"points":36,"comments":36},"29693400",1640534147,{"id":458,"t":459,"points":43,"comments":36},"29720033",1640737100,{"id":4,"t":12,"points":14,"comments":15},[462,467,472,477,482,486],{"id":463,"name":464,"points":465,"category":466},"30057442","Let's Block It",261,"security_privacy",{"id":468,"name":469,"points":470,"category":471},"30047455","Marginalia",236,"consumer_social",{"id":473,"name":474,"points":475,"category":476},"30089895","Electric Tables",231,"productivity",{"id":478,"name":479,"points":480,"category":481},"30045901","Webutils",188,"creative",{"id":483,"name":484,"points":485,"category":471},"30039692","Hacker XP",136,{"id":487,"name":488,"points":489,"category":490},"30066184","Hey.Café",133,"web_saas",53,false,"v2",{"id":495,"name":5,"line":6,"ai":492,"cat":20,"year":13,"points":14,"comments":15,"rec":27,"s":496,"top":18,"kw":497,"maker":11,"domain":10,"tier":19,"attempts":39,"strip":498,"url":9,"mix":499,"praise":70,"objection":101,"sub":21},30051902,-0.08,[21,24,25,26],"5013150513153500050053335115100355010133",[30,31,32,31],1794036616059]