Adrian Rodrigo
2010-06-27 07:32:39 UTC
Hey,
When using the provided input for human players only, the output when
someone orders up the dealer and goes alone is:
HumanPlayer 2 (KH,9H,10H,AC,JC) > Player 2 orders up Player 4 and is
going alone.
However, when using computer players only, the output in the same
situation (with seed 8) is:
Computer (CMA) Player 1 (JC,AH,9D,10C,JS) > Player 1 is going alone.
This seems like bad design since the printing code must be repeated for
both. I can fix our program by doing some dynamic type checking
workaround, but this is also pretty bad design.
Anyway, I was just wondering what we should do?
Renaud
When using the provided input for human players only, the output when
someone orders up the dealer and goes alone is:
HumanPlayer 2 (KH,9H,10H,AC,JC) > Player 2 orders up Player 4 and is
going alone.
However, when using computer players only, the output in the same
situation (with seed 8) is:
Computer (CMA) Player 1 (JC,AH,9D,10C,JS) > Player 1 is going alone.
This seems like bad design since the printing code must be repeated for
both. I can fix our program by doing some dynamic type checking
workaround, but this is also pretty bad design.
Anyway, I was just wondering what we should do?
Renaud