A collection of classic games built with React and Vite.
- Rock Paper Scissors - Multiplayer online game
- Tic Tac Toe - Multiplayer online game
- Wordle - Word guessing game
- Snake - Classic snake game
- Hangman - Word guessing with hangman graphics
- Node.js 18 or higher
- npm
npm install
npm run devnpm run buildnpm run previewThis project is configured for deployment to GitHub Pages using GitHub Actions.
Most Common Issue: If you see "Resource not accessible by integration" error:
-
Enable GitHub Pages in your repository:
- Go to Settings → Pages
- Set Source to "GitHub Actions"
- Save changes
-
Push your changes:
git add . git commit -m "Deploy to GitHub Pages" git push origin main
-
Monitor deployment in the Actions tab
If the main workflow fails:
npm run switch-deploy # Switch to simplified workflow
git add .
git commit -m "Switch to simplified deployment"
git push origin mainnpm run build
# Upload the contents of the `dist` folder to your hosting providernpm run deploy # Check deployment readiness
npm run deploy:check # Same as above
npm run deploy:switch # Switch to alternative workflowAfter deployment: https://[your-username].github.io/GameHub/
- Responsive Design - Works on desktop and mobile
- Multiplayer Support - Some games support online multiplayer via API
- Modern UI - Built with modern React patterns and CSS
- Fast Loading - Optimized build with Vite
- Frontend: React 19, React Router
- Build Tool: Vite
- Styling: CSS3
- 3D Graphics: Three.js (for visual effects)
- HTTP Client: Axios
- Deployment: GitHub Pages
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is open source and available under the MIT License.