Server for 4-player Euchre, built on Haskell's Network.Socket
.
cabal run euchre-server
telnet localhost 4242
Game begins after 4 connections are successfully made.
a h # ace of hearts
cj # jack of clubs
qd # queen of diamonds
10s # 10 of spades
...
etc
s d c h
-> spades, diamonds, clubs, hearts
9 10 j q k a
-> 9, 10, jack, queen, king, ace
- deal cards
- "turn over" top card
- choose trump suit
- if top card selected, dealer chooses a card to give up and receives top card
- if not, each player gets a chance to choose a suit or pass
- opportunity to call loner
- 5 trick taking subrounds:
- leader starts
- highest card player wins the subround
- next leader = highest card player
- team with most tricks taken wins the round
- 1 point if their team called it
- 2 points if the other team called it
- 4 points if loner