Yink / Amadeus

A side project that aims to replicate the Amadeus App shown in Steins;Gate 0.
GNU General Public License v3.0
969 stars 162 forks source link

Mapping input to output with a HashMap #48

Closed Mk-Chan closed 6 years ago

Mk-Chan commented 6 years ago

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.