Discussion:
Reference Behaviour: Computer Discarding
(too old to reply)
Brian Attwell
2010-06-20 06:09:30 UTC
Permalink
I'm unclear why the reference solution has the computer player discard a
specific card in one instance. When you run the "./our_euchre 7" with
all computers, the dealer will order itself up and discard 10H (note
that Diamonds is trump):

"Computer (CMA) Player 1 (AS,JH,AC,JD,10H) > Player 1 orders up Player 1.
Player 1 is picking up KD and discarding 10H."

In the specification, the computer's first choice is "to create a void
in a non-trump suit". The dealer could discard AS to create a void, so
why doesn't it?

I have an additional question regarding the paragraph detailing AI card
discarding strategy: I'm not certain what the italicized "first"s refer
to. Does this mean the that if there are two cards that should be
discarded of equal value, that the first from the left should be discarded?

Thanks for any clarification,
Brian Attwell
Joanne Atlee
2010-06-20 15:53:39 UTC
Permalink
Post by Brian Attwell
I'm unclear why the reference solution has the computer player discard a
specific card in one instance. When you run the "./our_euchre 7" with
all computers, the dealer will order itself up and discard 10H (note
"Computer (CMA) Player 1 (AS,JH,AC,JD,10H) > Player 1 orders up Player 1.
Player 1 is picking up KD and discarding 10H."
In the specification, the computer's first choice is "to create a void
in a non-trump suit". The dealer could discard AS to create a void, so
why doesn't it?
The specification says to discard the "first lowest non-trump card that
will create a void." 10H is lower than AS.
Post by Brian Attwell
I have an additional question regarding the paragraph detailing AI card
discarding strategy: I'm not certain what the italicized "first"s refer
to. Does this mean the that if there are two cards that should be
discarded of equal value, that the first from the left should be discarded?
Sorry about that. The definition of first was crossed out when we
eliminated the first computer player.

Your guess is correct. When two or more cards satisfy a rule, play the
card that is first from the left.

I'll amend the spec.


Jo

Loading...