project work
IE 351: Project Definition
Due: December 12th, 2015
Texas Hold em’ simulation
You must work alone on this project, any portion of code that is plagiarized from others including
classmates, online tutors, etc. will get an immediate 0 and you will be subject to the disciplinary
guidelines of the course. You will submit a zipped file including your main programs and functions.
This is a simulation approach to Texas hold ‘em. There is only one player and the high card does not
matter for this simulation. The problem is solved in three steps.
Step 1
Ask the user which hand they want to see. This should be done by creating a menu where the user can
pick which hand they want to simulate.
Step 2
Continue dealing hands until the user’s choice is satisfied.
Deal 52 random cards
o Use first 7 as possible cards
o Loop through all possible combinations of the 7 cards
Find the maximum score possible from all combinations
Step 3
Once the user’s choice has been satisfied use the subplot command and the imshow command to
graphically represent the final hand representing the user’s choice. You should also include an fprintf
statement which displays how many hands were dealt to reach the user’s choice hand.