(Get Answer) – C++ mastermind and hashing | Computer Science homework help
Question one MasterMind (Most important)
Chose a V1 OR V2 to only edit the AI function to make it solve the game in 12 or less guess Mastermind with an AI
Guidelines 4 digit code breaking 0000-9999
Use my Driver/Stub to write your own AI function. You will find in the class repository.
Create your AI function whose output is the next guess to break the code.
Given the attached Merkle Tree from http://en.wikipedia.org/wiki/Merkle_tree
L1=Then out spake brave Horatius,
The Captain of the Gate:
L2=”To every man upon this earth
Death cometh soon or late.
L3=And how can man die better
Than facing fearful odds,
L4=For the ashes of his fathers,
And the temples of his Gods.”
Create all hashes 0-0, 0-1, 1-0, 1-1, 0, 1 with top
Show all you need to do to confirm
L1 is 0-1, 0, top
L2 is 0-0, 1, top
L3 is 1-1, 0, top and
L4 is 1-0, 0, top