Question: MATLAB function: Card Game War I need to create a matlab function that can simulates the card game War for 2 players untill a winner

MATLAB function: Card Game "War"

I need to create a matlab function that can simulates the card game War for 2 players untill a winner is declared. There will be 10,000 games of war and generate the histograms for winner and number of battles until a winner is declared and number of wars that occured during game play.

I will be really appreciated if someone who is good in matlab can help me in finish this problem.

Thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!