A collection of classic games rebuilt with modern web technologies - React, TypeScript, and Tailwind CSS.
Four classic games reimagined using modern web technologies. Built for mobile, compatible with desktop. Perfect for learning React patterns and game development concepts. Features responsive design, touch support, and keyboard controls.
- 2048: Slide and combine tiles to reach 2048
- Bird Flapper: A flappy bird inspired game
- Word Guesser: A Wordle-like word guessing game
- Higher or Lower: A card guessing game
- Modern Tech Stack: Built with React 18, TypeScript, and Tailwind CSS
- Responsive Design: Playable on both desktop and mobile devices
- Multiple Control Methods: Keyboard, touch, and click controls
- Clean Architecture: Well-organized component structure
- Type Safety: Full TypeScript implementation
- Performance Optimized: Built with Vite for fast development and production builds
- Clone the repository:
git clone https://github.com/WDibble/react-games
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open http://localhost:5173 in your browser
- Framework: React 18 with TypeScript
- Styling: Tailwind CSS
- Build Tool: Vite
- Routing: React Router DOM
- State Management: React Hooks
├── src/
│ ├── pages/ # Game components
│ │ ├── BirdFlapper.tsx
│ │ ├── HigherOrLower.tsx
│ │ ├── TwentyFourtyEight.tsx
│ │ └── WordGuesser.tsx
│ ├── App.tsx # Main app component
│ └── main.tsx # Entry point
- Arrow Keys: Move tiles
- Touch: Swipe in any direction
- On-screen Buttons: Click arrows to move
- Space: Flap/Jump
- Touch/Click: Tap to flap
- Keyboard: Type letters
- Enter: Submit guess
- Backspace: Delete letter
- Buttons: Click Higher/Lower
- Touch: Tap buttons to guess