Discussion:
What card are we allowed to play in this situation?
(too old to reply)
Tony Xu
2010-06-21 05:52:20 UTC
Permalink
In the Euchre description, it says
"the player to the left of the dealer leads the first roun2 and the card
can be any card from the player's hand. Play then proceeds clockwise
around the table. The next three players must play a card of the same
suit, if they have one in their hand."

So i tested this in the our_euchre provided, and it seems to allow the
players that aren't leading to play an off suit even when they have the
suit lead.

For ex)

say Spades is trump

if player 3 played 10D

and player 4 has ( QS, QD, 10C ), shouldn't the player only be allowed
to play QD or QS to follow suit or trump??

In the program, when this is the case, player 4 was allowed

HumanPlayer 3 (10D,10H,9S) leads > play 10D
Player 3 played 10D.
HumanPlayer 4 (QS,QD,10C) > play 10C
Player 4 played 10C.
Joanne Atlee
2010-06-21 14:50:55 UTC
Permalink
Post by Tony Xu
In the Euchre description, it says
"the player to the left of the dealer leads the first roun2 and the card
can be any card from the player's hand. Play then proceeds clockwise
around the table. The next three players must play a card of the same
suit, if they have one in their hand."
So i tested this in the our_euchre provided, and it seems to allow the
players that aren't leading to play an off suit even when they have the
suit lead.
For ex)
say Spades is trump
if player 3 played 10D
and player 4 has ( QS, QD, 10C ), shouldn't the player only be allowed
to play QD or QS to follow suit or trump??
In the program, when this is the case, player 4 was allowed
HumanPlayer 3 (10D,10H,9S) leads > play 10D
Player 3 played 10D.
HumanPlayer 4 (QS,QD,10C) > play 10C
Player 4 played 10C.
This is called "reneging" - not following suit when a card of the led
suit is in the hand.

In the situation above, *human* players are reneging. The provided
executable does not check whether players reneg. (As the project
descrition states, you can implement this functionality for extra
marks.) While human players might reneg, your computer players
shouldn't reneg!


Jo

Continue reading on narkive:
Loading...