Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

code should be written in simple java 3. Prepare a read me file for your program Create a file named readne doc that describes the

code should be written in simple java image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
3. Prepare a "read me" file for your program Create a file named readne doc that describes the design of your Nim program. It should briefly describe each class, the relationships among the classes (use UML diagrams), and how to use your program. Finally, briefly explain (in the readme file) how your design can casily adapt with the following changes: i) ii) If instead of one pile of stones, the game introduces three (or n) piles iii) If the game needs to be played between two computers(i.e., both the If we want to introduce a new player, who will select a move following a different strategy of stones with different sizes. players are computers). We will evaluate your program on the quality of the design and implementation, For example, iHow well are the responsibilities apportioned to independent objects that collaborate to solve the problem? ii How flexible is the design in the face of reasonable changes to the Your code and your "read me" file are the only ways you have to communicate your design and implementation, so try to use them to communicate well. A Specification for a Program to Play Nim The game of Nim consists of two players and a pile of sticks or stones. The players alternat picks up the last stone loses the game. e turns, which consist of picking up one, hwo, or three stones. The player who Your program should allow the user to play a number of games of Nim against the computer, displaying results of the play to the user Your initial implementation provide only a few simple behaviors: Allow the user to specify the number of stones to be used for the game. Allow the user to specify which player goes first

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions