coding-horror / basic-computer-games

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/
The Unlicense
10.84k stars 1.33k forks source link

Changed get_input() to return Option<u32> #897

Closed lmstolton closed 1 year ago

lmstolton commented 1 year ago

43 Hamurabi - Changed the get_input function to return Option in the Rust port.

This has enabled a simplification of the calling code, and improved readability.

coding-horror commented 1 year ago

Appreciate it!