Question: 1) Strategy Pattern You are developing a new Rock Legends game and need a configuration system for your players. The game has three different rock

 1) Strategy Pattern You are developing a new "Rock Legends game

1) Strategy Pattern You are developing a new "Rock Legends game and need a configuration system for your players. The game has three different rock legend characters (The Edge, Jimi Page, and David Gilmour). Each character can play one of three different guitars (Gibson SG, Fender Stratocaster or Gibson Les Paul). Each character can also perform a unique solo act (Smash the Guitar, Set the Guitar on Fire, Jump off the Stage). Implement a player configuration system in Java using the Strategy design pattern. You should have separate classes for each of the components specified. Below is a class (with main) to get you started - it is not exhaustive with respect to your assignment. public class RockLegends { public static void main(String[] args) { GameCharacter player1 = new GameCharacterEdge(); GameCharacter player2 = new GameCharacterPage(); player 1.playGuitar(); player2.playGuitar(); player1.playSolo(); player 2.playSolo(); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!