Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I am working on a slavemind game project written in Java. Does anybody here have been working on that or have done that before? I really need the source code for the SlaveMind Game. This is how the game is: The game of Mastermind where one player sets up a number of pins behind a barrier and the other player guesses the colour and position of each pin is well known. The Slavemind game in this assignment is similar except it is played against the computer using numbers instead of coloured pins.
The computer generates a number consisting of five non-unique digits between 1 and 5. The human player repeatedly guesses the number, receiving feedback on the accuracy of each guess from the computer. Feedback is of the following form:
A P is awarded if a digit in the guess is correct and in the correct position. More than one P means that multiple digits are in the correct position, without saying which digits or positions they are. PPPPP means that all digits are correct and in the correct position.
An N is awarded if a digit in the guess is correct but in the wrong position.
A Z is awarded if no digits of the guess are in the target number.
So that the game is not too easy, the feedback always evaluates and displays the Ps before the Ns.
I would be very thankful if you could post a reply to this. TQ!
0 · ·