Skip to content

Trup (Troupe) Web Game Trup is a local modernized card game that blends the strategic depth of Whist, Spades, and Hearts into a unique trick-taking experience. Built with web technologies, this game is designed to be cross-platform, allowing friends to play together via browser on desktop or mobile without installation.

Notifications You must be signed in to change notification settings

ephanpdk/trupest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRUPEST - Strategic Card Game Engine

Overview

TRUPEST is a multiplayer strategic card game with a Vue 3 frontend and Fastify WebSocket backend.

Project Structure

  • client/ - Vue 3 + Vite frontend with Tailwind CSS
  • server/ - Fastify + WebSocket backend with TypeScript
  • shared/ - Shared TypeScript types between client and server

Running the Application

The application uses two workflows:

  • Frontend: Vue/Vite dev server on port 5000 (proxies WebSocket to backend)
  • Backend: Fastify WebSocket server on port 3001

Development Setup

  • Frontend: cd client && npm run dev
  • Backend: cd server && npx tsx src/index.ts

Architecture

  • The frontend connects to the backend via WebSocket through Vite's proxy
  • WebSocket route: /game
  • Health check route: /health
  • The game supports human players and AI bots
  • Game phases: WAITING → DEALING → BIDDING → TRUMP_SELECTION → TRICK → SCORING → FINISHED

Key Technologies

  • Vue 3 with Pinia for state management
  • Vite with rolldown for bundling
  • Fastify with WebSocket support
  • TypeScript throughout
  • Tailwind CSS for styling

About

Trup (Troupe) Web Game Trup is a local modernized card game that blends the strategic depth of Whist, Spades, and Hearts into a unique trick-taking experience. Built with web technologies, this game is designed to be cross-platform, allowing friends to play together via browser on desktop or mobile without installation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published