Answer by amon for Another Rock Paper Scissors Lizard Spock implementation
In addition to rolfl's comments on your excellent code:The fight method does not belong into the main StackExchange class. Instead, its logic belongs into Items. The edge method is slightly...
View ArticleAnswer by rolfl for Another Rock Paper Scissors Lizard Spock implementation
ItemPlayer is a really good idea. Keeping the logic and score centralized in an abstract class for the AI and Human player is a good design, but, you have not taken the idea far enough.The abstract...
View ArticleAnother Rock Paper Scissors Lizard Spock implementation
The ChallengeCreate an implementation of "Rock - Paper - Scissors - Lizard - Spock".The rules:Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors,...
View Article
More Pages to Explore .....