A mobile-optimized Texas Hold'em Poker web application built with Next.js, TypeScript, and shadcn/ui components.
- Support for 2-10 players
- Mobile-optimized interface
- Visual representation of the poker table, cards, and players
- Game state management for poker rounds (preflop, flop, turn, river)
- Player actions: fold, check, call, raise
- Visual indicators for dealer, small blind, big blind, and all-in status
- Player avatars and chip counts
- Next.js 15
- TypeScript
- Tailwind CSS
- shadcn/ui components
- React Hooks for state management
- Node.js 18.17 or later
- Clone the repository:
git clone https://github.com/yourusername/texas-holdem-poker.git
cd texas-holdem-poker
- Install dependencies:
npm install
- Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser to see the application.
-
Deploy
vercel deploy --prod
- Start by selecting the number of players (2-10) and your position at the table.
- The game will automatically deal cards and assign dealer, small blind, and big blind positions.
- Players take turns clockwise around the table.
- Available actions include:
- Fold: Give up your hand and exit the current round
- Check: Pass the action to the next player (only if no bet is required)
- Call: Match the current bet
- Raise: Increase the current bet
- The game progresses through the standard poker stages: preflop, flop, turn, river, and showdown.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Next.js and shadcn/ui components
- Designed for mobile-first experience
npm test -- __tests__/modInverse.test.ts