Introduction to 2D Linux Game Programming/Algorithms/Simple Software Transformations/The Helper Functions

The Helper Functions
Rather than writing a function to print the 2D array of integers for every one of these simple examples, or manually ask for and validate input, these helper functions do the work for us. It also keeps the code cleaner, keeping the printing away from the algorithm we're showing.