Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?
Seems to me guess-and-check really only gets bad as N approaches M. But you can solve that easily: If N > M / 2, then do guess-and-check for (M-N) and then invert the bits. Now your worst case scenario is N = M / 2, which really isn't all that bad. You're doing on average just under two checks for the last bit you set, and less for the bits before that.

Adbot
ADBOT LOVES YOU

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?
Enjoyed the ending. Wrapped up the story nicely.

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?
Oh wow I'd read that one before but completely forgot about it.

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

sighnoceros posted:

I've finished SPACE DEFENSE!


w/s to move up and down, e to fire. You now have to defend against multiple enemies and can have multiple bullets on screen at once.

It was a pretty fun experiment for only taking a couple days, especially having no experience with this type of programming in the past.

Try it out here: http://johnearnest.github.io/Octo/index.html?gist=6a4a180bb8b94c005410

Pretty good, but could you maybe lengthen the pause after you lose? I barely have enough time to see my score, sometimes I miss it.

  • Locked thread