Solution for HW8

Your solution has been tested on the following three sample machines

Machine 1

2
C D
1 2
2 2

Machine 2

1
D
1 
1

Machine 3

3
C C D
1 2 3 
2 3 3

These three machines have been played again each other in three games. Each game had 5 iterations. Here are the corrected answers that I was looking for

Machine 1 vs Machine 2: CD DD DD DD DD

Machine 2 vs Machine 3: DC DC DD DD DD

Machine 1 vs Machine 3: CC CC CC CC CC