Discussion:
AI behaviour conflicting with specs
(too old to reply)
James Rossy
2010-06-23 03:27:39 UTC
Permalink
Hey,

We've encountered a scenario where it seems like the AIs behaviour is
conflicting with the specifications.

Run our_euchre and run 4 computers against each other.

Around 1/3 of the way into the game you'll see this round:

Computer (CMA) Player 3 (9H,QD,AS,JS) leads > Player 3 played JS.
Computer (CMA) Player 4 (AC,QS,JD,10D) > Player 4 played AC.
Computer (CMA) Player 1 (AH,QH,AD,KS) > Player 1 played QH.
Computer (CMA) Player 2 (KD,10S,KH,10C) > Player 2 played 10C.
Player 3 won the round.


According to the specs:
If the AI can follow suit, it will play the highest card in that suit if
it can beat the highest played so far; otherwise it will play its lowest
of that suit.

Isn't the computer cheating here?

We would expect to see:

Computer (CMA) Player 3 (9H,QD,AS,JS) leads > Player 3 played JS.
Computer (CMA) Player 4 (AC,QS,JD,10D) > Player 4 played QS.
Computer (CMA) Player 1 (AH,QH,AD,KS) > Player 1 played KS.
Computer (CMA) Player 2 (KD,10S,KH,10C) > Player 2 played 10S.


Thanks in advance!
-James
James Rossy
2010-06-23 04:03:32 UTC
Permalink
Post by James Rossy
Hey,
We've encountered a scenario where it seems like the AIs behaviour is
conflicting with the specifications.
Run our_euchre and run 4 computers against each other.
Computer (CMA) Player 3 (9H,QD,AS,JS) leads > Player 3 played JS.
Computer (CMA) Player 4 (AC,QS,JD,10D) > Player 4 played AC.
Computer (CMA) Player 1 (AH,QH,AD,KS) > Player 1 played QH.
Computer (CMA) Player 2 (KD,10S,KH,10C) > Player 2 played 10C.
Player 3 won the round.
If the AI can follow suit, it will play the highest card in that suit if
it can beat the highest played so far; otherwise it will play its lowest
of that suit.
Isn't the computer cheating here?
Computer (CMA) Player 3 (9H,QD,AS,JS) leads > Player 3 played JS.
Computer (CMA) Player 4 (AC,QS,JD,10D) > Player 4 played QS.
Computer (CMA) Player 1 (AH,QH,AD,KS) > Player 1 played KS.
Computer (CMA) Player 2 (KD,10S,KH,10C) > Player 2 played 10S.
Thanks in advance!
-James
Hey all,

William Song sent me an email with the solution to this problem.
In case anyone else is confused by this here it is:

The behavior is correct because C is the trump suit, so JS is the left
bower (which is counted in the trump suit). Hence, the other players are
forced to play their trump card if they have one.

Thanks Will

Loading...