An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common MEMORY SAFE, SCRIPTING programming languages. See https://coding-horror.github.io/basic-computer-games/
Unfortunately found a bug in the previous version. It makes an incorrect assumption that the first card’s value is less than that of the second card. The new version uses Enum.sort/1 to not rely on that assumption being true.
Unfortunately found a bug in the previous version. It makes an incorrect assumption that the first card’s value is less than that of the second card. The new version uses
Enum.sort/1
to not rely on that assumption being true.