Skip to content

♦️♠️ Haskell Euchre server over sockets ♥️♣️

Notifications You must be signed in to change notification settings

laurenarnett/euchre-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Euchre Server

Server for 4-player Euchre, built on Haskell's Network.Socket.

euchre3

Usage

Start the server:

cabal run euchre-server

Connect as client:

telnet localhost 4242

Game begins after 4 connections are successfully made.

Acceptable card input:

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

Each round:

  • 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

About

♦️♠️ Haskell Euchre server over sockets ♥️♣️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published