Commit Graph

3 Commits

Author SHA1 Message Date
Brax Antti (Oy Samlink Ab)
c8633c6051 Convert 20_Buzzword to Java
Provide the output PrintStream dependency to UserInterface in the
constructor instead of have it hard coded to System.out.
2022-01-12 14:33:55 +02:00
Brax Antti (Oy Samlink Ab)
3e9f1354b3 Convert 20_Buzzword to Java
The original version was a straight forward monolithic BASIC-to-Java
conversion. Updated to use common Java coding conventions.

 - Split the single static main method into classes. The static part
   only contains the bootstrap code for the game.
 - Split the word list into three arrays so that there is no need to
   use error-prone calculations when choosing the random words.
 - Placed the Scanner in a try-with-resources block to ensure that the
   scanner gets closed when it is no longer needed.
2022-01-12 14:26:18 +02:00
Chris Reuter
d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00