This project is divided into two parts, running a guessing game simulation, and analyzing the results of that simluation. You may use any of the langauges covered this semester, but each part must be done in a different language.
In this portion of the project you will write a progam that simluates a word guessing game between 3 players. The gist of the game is this: One player chooses a word for the other two players to guess. The two guessers take turns guessing a letter until the word is discovered.
Your program will use a file, dictionary.txt with a list of words for player 1 to choose from, one word per line. The word for each game should be chosen by player 1 using some strategy. This strategy can be anything other than choosing the words in the order that they are in the file.
Once a word is chosen, players 2 and 3 take turns guessing letters. After each guess, player 1 should print out the word with any correctly guessed letters filled in. Players 2 and 3 must use different strategies to guess letters. Possible strategies are:
Once a word is correctly guessed, print the number of guesses it took to get the word. Additionally the player that won should be printed along with the strategy they used.
The program will continue to play multiple games. The number of games played in each execution should be a random integer from 1 to the number of words in the dictionary file.
Your previous program should output the results of the simulations in a file that is both human readable and easibly understood by this program. This program will take the results of the previous program and calculate numerous statistics. These statistics must be calcuated in this program and cannot be part of the output of the prior program.
This program should determine the following and output it to the screen:
In addition to the programs described above, turn in a one page write up, printed to PDF preferibly, that answers the following questions.
Along with your project, submit a README.txt with instructions on how to run the code and what files will be generated.
submit cs331_bwilk1 project {YOUR FILES}