Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Dungyichao authored Mar 28, 2018
1 parent c2ba9b3 commit 9fc31aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Mastermind
This is a program to guess the code. The algorithm implemented in this file can reach about 5.14 times of guessing in average. You can find two python file. The ```mastermind_final.ipynb``` file is a breakdown explanation on playing one time game. The ```mastermind_final.py``` file is to obtain the average number of guessing times after playing 1256 times. Recently, our algorithm is able to obtain average guessing time 5.14 for 1256 times of play. The maximum guessing time is 7. You can find the result from the .csv file ```mastermind_final.csv```.
This is a program to guess the code. The algorithm implemented in this file can reach about 5.18 times of guessing in average. You can find two python file. The ```mastermind_final.ipynb``` file is a breakdown explanation on playing one time game. The ```mastermind_final.py``` file is to obtain the average number of guessing times after playing 10000 times. Recently, our algorithm is able to obtain average guessing time 5.18 for 10000 plays. The maximum guessing time is 7. You can find the result from the .csv file ```mastermind_final.csv```.
## 1. About the game<br />
This game also names Bulls and Cows and it involves two persons(ex. Tom, Jack). Each of the player will think of a sequence of 4 digit number without duplicate such as 1234 or 4705. One of the player need to guess another player's answer. During the guessing process, Tom will guess a sequence of number and Jack will response the guessing with two number **A** and **B**. **A** represents the number of digit with correct value as well as the correct position. **B** represents the number of digit with correct value but wrong position. Tom will give another guess based on the information of A and B and then Jack will give another A, B value as response. The guessing process will terminate untill Tom comes up with the right answer of Jack.<br />

Expand Down

0 comments on commit 9fc31aa

Please sign in to comment.