Solve Exercise 8.10 with different no. of dice. Solve Exercise 8.10 for two other cases with 3 and 50 dice, respectively. Name of program file: simulate_strategies2.py Exercise 8.10 Compare two...


Solve Exercise 8.10 with different no. of dice. Solve Exercise 8.10 for two other cases with 3 and 50 dice, respectively. Name of program file: simulate_strategies2.py


Exercise 8.10


Compare two playing strategies. Suggest a player strategy for the game in Chapter 8.4.2. Remove the question in the player_guess function in the file src/random/ndice2.py, and implement the chosen strategy instead. Let the program play a large number of games, and record the number of times the computer wins. Which strategy is best in the long run: the computer’s or yours? Name of program file: simulate_strategies1.py

Nov 15, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here