HaikuBotStalksMe
HaikuBotStalksMe t1_itvica0 wrote
Reply to comment by Doomgloomya in Android phones offered early US quake warning, beating iPhones to the punch | Google's earthquake detection network turns Android phones into seismometers, and it paid off yesterday. by chrisdh79
So why do you people tell us to evacuate for a hurricane/flood days ahead of time? Just tell us like 5 minutes before.
HaikuBotStalksMe t1_itseyy7 wrote
Reply to comment by relefos in [WP] You are an NPC in an RPG. Normally, your attack is set to 1. However, a player used a cursed item on you, reducing your attack by 2, causing it to underflow, making you the most powerful in the game. by alegonz
That's a fair point. But like usually overflow or underflows in games happen because you didn't bother setting up a safe upper or lower bound.
Like in 8 bits, you're gonna get up to 255. As such, I wouldn't let someone have more than like 200 points, and no single action will allow them to gain more than 50 points. And each time they gain or lose, I'm gonna make sure that if the value will be negative, then they can only go to 0 ("if score < pointslost: score = 0; else score -= pointslost"), and if adding any score goes over 200, then the score is set to 200.
My coworkers complain I overthink/over-safety my code sometimes, but hey, why risk it?
HaikuBotStalksMe t1_itqy3ug wrote
Reply to comment by AutoModerator in [WP] You are an NPC in an RPG. Normally, your attack is set to 1. However, a player used a cursed item on you, reducing your attack by 2, causing it to underflow, making you the most powerful in the game. by alegonz
This kind of stuff is why I program safety measures in my game. Like "if x == 0, do blah. If x == 2, do blah2, if x==3 do blah 3. If x > 3, x= 3 continue, if x < 0, x = 0, continue"
HaikuBotStalksMe t1_itpo2pg wrote
Reply to comment by ScholarImpossible121 in Bluey’s dad probably uses the C word. by acousticwonder
Is that related to Celsius, the universal temperature unit?
HaikuBotStalksMe t1_itn2m92 wrote
Reply to Photo of the Willson family, pulled from the rubble of their fatal house fire in 1962 (Digital edit) by LeeroyM
/r/thathappened
HaikuBotStalksMe t1_ithfm7k wrote
Reply to comment by trueblue212 in Hundreds of rare birds rescued from island cut off by Hurricane Ian by Sariel007
They are. They're just robotic.
HaikuBotStalksMe t1_ithfk6d wrote
Reply to comment by LunarLutra in Hundreds of rare birds rescued from island cut off by Hurricane Ian by Sariel007
>And I can’t live with that
Neither can the birbs
HaikuBotStalksMe t1_itdhr8c wrote
Reply to comment by AutoModerator in [WP] You are a young girl with long, black hair, and your magic talent is being able to travel through the television of the nearest person in need of a friend. But no matter how friendly you feel, they all start running when you climb out of their TV. by loopymon
Kind of reminds me of Scream.
HaikuBotStalksMe t1_itargw9 wrote
Reply to comment by winterwolf07 in Voter fraud charges dropped against Hervis Rogers, Houston man who waited hours to vote in 2020 by nosotros_road_sodium
They'll just say the taxes are part of the fee.
HaikuBotStalksMe t1_itareml wrote
Reply to comment by SandpipersJackal in Voter fraud charges dropped against Hervis Rogers, Houston man who waited hours to vote in 2020 by nosotros_road_sodium
Never fight Russia when winter is on the line. Or something like that.
HaikuBotStalksMe t1_itaj7vp wrote
Reply to comment by ApiContraption in PsBattle: Anthony Daniels cooling down on the Tunisia set during the filming of A New Hope by MyNameIsNotRRICK
Where's the different colored leg?
HaikuBotStalksMe t1_itvtis3 wrote
Reply to comment by relefos in [WP] You are an NPC in an RPG. Normally, your attack is set to 1. However, a player used a cursed item on you, reducing your attack by 2, causing it to underflow, making you the most powerful in the game. by alegonz
And you're totally right to point it out! Thanks.