terça-feira, 24 de dezembro de 2024
Show HN: Space Trader (Ported from Palm OS to Vanilla JavaScript and HTML) https://ift.tt/MSXdg9h
Show HN: Space Trader (Ported from Palm OS to Vanilla JavaScript and HTML) Hi HN! I brought my favorite game from Palm OS to the web as a hobby project. In Space Trader, you can trade goods, hunt bounties, amass a fortune, buy a moon and retire. One of the parts of this project I enjoyed the most: To aid debugging and unit testing, I use a deterministic random number generator called GameRand. In debug mode, I can capture the random seed and log of every action taken in the game. Then I can replay that to reproduce a bug or create a test. I ended up creating nearly exhaustive test coverage this way. A write-up with more technical details and links to source code: https://ift.tt/hT5YLis https://ift.tt/CkfXvWG December 24, 2024 at 08:18AM
Assinar:
Postar comentários (Atom)
DJ Sandro
http://sandroxbox.listen2myradio.com
Nenhum comentário:
Postar um comentário