forked from Yink/Amadeus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mapping input to output with a HashMap now
Swapped out the if-else chain for checking input for a loop over a pre-initialized HashMap which has the mapping for each input to output. Simplifies responseToInput() further.
- Loading branch information
Showing
1 changed file
with
145 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters