XTech2K / buck

0 stars 0 forks source link

trick wrongly won by jack of non-trump suit #1

Open therrick opened 2 years ago

therrick commented 2 years ago
-> % python3 main.py
Player 0's hand: ['tc', '9h', 'td', 'kd', 'qd', 'th']
Player 1's hand: ['kh', '9d', 'jc', 'ts', 'ah', 'qs']
Player 2's hand: ['kc', 'jh', 'ks', '9c', 'ac', 'js']
Player 3's hand: ['jd', 'qc', 'ad', '9s', 'as', 'qh']
Player 1's bid: pass
Cannot pass the first bid!
Player 1's bid: 3
Player 2's bid: pass
Player 3's bid: pass
Player 0's bid: pass
Player 1 chooses trump: clubs
Player 1's hand: ['kh', '9d', 'jc', 'ts', 'ah', 'qs']
Currently played cards: [None, None, None, None]
Player 1 plays: ah
Please pick a card index to play!
Player 1 plays: 4
Player 2's hand: ['kc', 'jh', 'ks', '9c', 'ac', 'js']
Currently played cards: [None, 'ah', None, None]
Player 2 plays: 1
Player 3's hand: ['jd', 'qc', 'ad', '9s', 'as', 'qh']
Currently played cards: [None, 'ah', 'jh', None]
Player 3 plays: 0
You could have played along with the led suit!
Player 3 plays: 5
Player 0's hand: ['tc', '9h', 'td', 'kd', 'qd', 'th']
Currently played cards: [None, 'ah', 'jh', 'qh']
Player 0 plays: 1
This trick is won by 2 with jh!
Player 2's hand: ['kc', 'ks', '9c', 'ac', 'js']
Currently played cards: [None, None, None, None]
Player 2 plays:

clubs was trump, so the ah should have outranked jh.

therrick commented 2 years ago

Continuing on, when I played js (which should have been treated as a club) and another player tried to follow with a club, it wasn't allowed...

Player 2's hand: ['kc', 'ks', '9c', 'ac', 'js']
Currently played cards: [None, None, None, None]
Player 2 plays: js
Please pick a card index to play!
Player 2 plays: 4
Player 3's hand: ['jd', 'qc', 'ad', '9s', 'as']
Currently played cards: [None, None, 'js', None]
Player 3 plays: 2
You could have played along with the led suit!
Player 3 plays: