Error in archive HP41 software listing SWAR - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: Error in archive HP41 software listing SWAR (/thread-6268.html) |
Error in archive HP41 software listing SWAR - damaltor - 05-17-2016 05:51 PM After typing (!) in the nice game "SWAR" (Space War) from here: http://www.hpmuseum.org/software/41td/swar.htm I noticed that there is a mistake in the listing. The line Code: 549 211327 Code: 549 .211327 Can this be corrected? (FYI: The line is part of a random number generator, which is not very random anymore if the point is missing. The game is stupid and boring without the correct random number generator, as the aliens always do the same things.) RE: Error in archive HP41 software listing SWAR - damaltor - 05-18-2016 09:54 AM This is more or less wat i thought - the game did not behave like the example in the manual though i used the same seed. I wondered why, looked at the part the random numbers come from, and instantly thought why one would add an integer to something if using FRC afterwards. I then looked through the other games which all use the same RNG and all of them had the point in it. Although that was hellofalotoffun to find that, wouldnt it be nicer if the code was just, like, correct? RE: Error in archive HP41 software listing SWAR - Dieter - 05-18-2016 06:03 PM (05-18-2016 09:54 AM)damaltor Wrote: This is more or less wat i thought - the game did not behave like the example in the manual though i used the same seed. If you like, you can also have a "creative variation" of this subject: Many HP programs use this RNG, and so does the Wari program for the HP41 (cf. lineĀ 247ff). Now take a look at line 7...10. The program prompts for a seed and stores it in R00, only to delete it directly afterwards by the CLRG command... *facepalm* (05-18-2016 09:54 AM)damaltor Wrote: Although that was hellofalotoffun to find that, wouldnt it be nicer if the code was just, like, correct? Absolutely. Dieter RE: Error in archive HP41 software listing SWAR - damaltor - 05-19-2016 07:33 AM Oh, that sounds clever... reminds me of this: |