News for hackers. Stuff that matters.
Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by JohnDeHope on Friday May 27, 2016 @06:23PM (#11789462)
One of the biggest hurdles for me is the inability to have arrays of structs. You have to have multiple arrays of atomic types, and keep the indexes in synch. Maybe that's not a problem here. I collect old basic books and enjoy the nostalgia as you seem to :)
Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by LarryMade2 on Friday May 27, 2016 @07:37PM (#11789830)
Back then everything was mainly numeric arrays then a mid$ (substr) lookup for the card names...

yeah, I could remaster the logic a lot simpler with with all the modern syntax. Maybe should draft out the original logic and rebuild from there, certainly a lot of variables and odd jumps to sort out.

Ive seen some articles on a more realistic card shuffle routine, etc. Also the games book suggests going for a three deck cardset would be more accurate as well..