(Updated October 28, 2026) Table of Contents Overview The First Regex The Better Regex – Part I The Better Regex – Part II Conclusion Overview Overview As we build the program to score and print a series of marks representing a complete game, we should also consider how to measure whether the scoring is legitimate. … Read More “Bowling Regex” »
Category: Algorithms
(Updated November 4, 2026) Overview When building a simple text game, we want the process to be smooth and elegant. There should be few places to trip up the user or make the play awkward. In this write-up, we look at how to craft the building blocks of a valuable, user-friendly game. User Input The … Read More “Building a Guessing Game” »
(Updated October 29, 2026) Overview We often have data in a form that is not immediately useful. If we need to do mathematical calculations and all we have is a string, we must first take another step. Here, we explore some of the finer details of how this can be done by examining the algorithm … Read More “Converting Strings” »
(Updated October 30, 2026) Overview Hex dumps have been around for a very long time. Looking at binary is mind-numbing, and decimal is less than ideal. Hexadecimal makes values much easier on the eyes. With some experience, you can see the binary tucked inside, as each hex digit represents four binary digits. The question is … Read More “The Hex Dump” »
(Updated November 3, 2026) The Problem As we know, with the conditional operators && (and) and || (or), we can join multiple Boolean expressions together to form a more complex expression. You may also recall that these operators operate in a mode known as short-circuit. This means that once truth is established, the evaluation will … Read More “Short-Circuit Evaluation – Advanced Example” »