Question: code should be written in java Introduction: This exercise asks you to design your own object-oriented program and build it from the scratch. Your task
Introduction: This exercise asks you to design your own object-oriented program and build it from the scratch". Your task is to write a program that plays the game of Nim. For now, we will use a text-based interface, though soon in the course we will be able to implement a nice graphical front end to the program. Tasks: I. Decompose the project requirements into smaller stories Study the rules of the game and the project requirements defined in the specification below. This specification is very simple, listing only a half dozen required behaviors. But some of those behaviors are much too big to implement directly, for example, "Play a game ser program and the From the specification, draft a few scenarios in which two players play the game. Decompose each scenario down into a set of small behaviors that you might be able to implement one at a time Create a list of these small behaviors, in the order you think you might want to implement them 2. Design and implement a program to play the game of Nim Use your list of behaviors to design and write your program. Then write Java classes to implement your design. You also need to write Java Doc comments in your source codes and generate documentation for your program. You may create whatever classes you think best model the problem. Note: You must identifv k from the problem and write s for them. I than t classes. You may also think of using inheritance. Make sure to include boundary checks on the user inputs (ie, handle all invalid user input and provide appropriate message)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
