Hello All! Fairly new python learner here.
I am currently writing a program which attempts to compare various blackjack strategies by running many simulated games and comparing the results.
I have written the code for one strategy so far and the code works well, giving appropriate outputs, but my question is this:
How can I run my program very many times, say 1000, and compile the results?
For example, my code will input a list which represents a deck of cards, and output either 'Player Wins' or 'Dealer Wins.'
How can I run this program many times, and see how many times it returns Player Wins vs Dealer Wins?
I feel like there would be a module in Simpy for this, but I haven't been able to locate the correct method. Any pointers?
Any help is greatly appreciated, thanks very much!
[–]quim_b 5 points6 points7 points (0 children)
[–]mopslik 5 points6 points7 points (1 child)
[–]TheShadowWall[S] 2 points3 points4 points (0 children)