Skip to main content
update format of what function outputs
Source Link

Computing pcSelection can be factored out into a separate function.

If users enter an invalid choice, promptUserInput still says Game Startedoutputs "Game Started! Enter your choice from below:". Users should instead be notified of an invalid choice they made.

The map gameRules could be renamed to something that conveys the fact that key defeats value (Instead of having it as comment).

Computing pcSelection can be factored out into a separate function.

If users enter an invalid choice, promptUserInput still says Game Started. Users should instead be notified of an invalid choice they made.

The map gameRules could be renamed to something that conveys the fact that key defeats value (Instead of having it as comment).

Computing pcSelection can be factored out into a separate function.

If users enter an invalid choice, promptUserInput still outputs "Game Started! Enter your choice from below:". Users should instead be notified of an invalid choice they made.

The map gameRules could be renamed to something that conveys the fact that key defeats value (Instead of having it as comment).

Source Link

Computing pcSelection can be factored out into a separate function.

If users enter an invalid choice, promptUserInput still says Game Started. Users should instead be notified of an invalid choice they made.

The map gameRules could be renamed to something that conveys the fact that key defeats value (Instead of having it as comment).