Quantcast
Channel: Another Rock Paper Scissors Lizard Spock implementation - Code Review Stack Exchange
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

Another 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
Browsing latest articles
Browse All 3 View Live




Latest Images