Posts

Showing posts from August, 2025

Wk07/08: Learning Journal Summary

 Hangman feels so distant yet so close. I would have approached it differently if I were to redo it today.  if I were to redo it I would split the code for classes and ui, it would be easier to test and change. Also, I would use more branches. I am comfortable using them even though I considered them as a waste of time throughout most of this class. Now I see their charm, especially when working on a group project and doing pull requests. better input checks: only one letter, a–z, ignore case, stop repeats, clear messages when input is bad. I would now use the right data: a Set for guessed letters so i can check fast; a method that builds the masked word correctly (handles repeats like in “pool”). Also I would handle edge cases: super short words, empty input, punctuation, same guess twice. I would also do tiny tests, like a few JUnit tests for win/lose, repeats, and masking. not fancy, just enough to catch dumb bugs. Now that I am slightly skilled, I could do a simple Androi...