Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 2 months ago

Coding C++ help?

Create a Game class that uses composition to use a mover object from the Mover class and a shaker object from the Shaker class. Design the game as simple or complex as you like, as long as you are using composition. Use member-initializer notation. Show, in main, how your game works. Have a play function that outputs to the console a series of moves that mover and shaker do when play is called. //use comments.

1 Answer

Relevance
  • EddieJ
    Lv 7
    2 months ago

    You should start by imagining that your program already works and show examples of the game play.  In other words, show us what the console would look like.  Or did your teacher / textbook provide this for you?  If so, we would need to see it.

    Show user input in square brackets.

    Keep in mind that it's not up to us to do your assignment for you.

Still have questions? Get your answers by asking now.