Skip to content

happy-edge/niuniu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‚ ็‰›็‰› (Niu Niu)

Real-time multiplayer Chinese card game (Bull Bull).

Features

  • Multiplayer - Up to 10 players per room
  • Real-time - WebSocket-based with instant updates
  • Mobile-friendly - Responsive poker table UI
  • Card animations - Smooth dealing effects

Hand Rankings

  1. ไบ”ๅฐ็‰› (5 cards โ‰ค10 total) - 5x
  2. ็‚ธๅผน็‰› (Four of a kind) - 4x
  3. ๅŒ่Šฑ้กบ็‰› (Straight flush) - 4x
  4. ไบ”่Šฑ็‰› (All face cards) - 3x
  5. ้กบๅญ็‰› (Straight) - 3x
  6. ๅŒ่Šฑ็‰› (Flush) - 3x
  7. ๅŒไบ”็‰›็‰› (Niu Niu with 5+5 points) - 3x
  8. ็‰›็‰› (Bull Bull) - 2x
  9. ็‰›7-็‰›9 - 2x
  10. ็‰›1-็‰›6 - 1x
  11. ๆ— ็‰› (No Bull) - 1x

Special Rules

  • 3โ‡„6 Swap - 3 can count as 6 and vice versa (configurable)
  • Banker wins ties - Same score = banker wins (configurable)

Setup

npm install
npm start

Server runs on http://localhost:3000

How to Play

  1. Create a room (you become the banker)
  2. Share the 4-letter room code with friends
  3. Players join and set their bet amount
  4. Banker clicks "ๅ‘็‰Œ" (Deal) when ready
  5. Cards are dealt and results shown instantly
  6. Banker clicks "ไธ‹ไธ€่ฝฎ" (Next Round) to continue

Configuration

Banker can access settings (โš™๏ธ) to configure:

  • ๅบ„ๅฎถ้€šๅƒ - Banker wins ties
  • 3โ‡„6 ไบ’ๆข - Enable 3/6 swap rule
  • Min/Max bet amounts

Tech Stack

  • Node.js + Express
  • Socket.io for real-time communication
  • Vanilla JS frontend

License

MIT

About

๐Ÿ‚ Real-time multiplayer Niu Niu (็‰›็‰›) card game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors