A visually stunning, neon-soaked 3D Tic-Tac-Toe game built with React Three Fiber. Experience the classic strategy game in a completely new dimension with glowing aesthetics, smooth animations, and deep strategy modes.
- Interactive 3D Board: Rotate the cube freely to find the perfect angle.
- Neon Aesthetic: High-end bloom effects, glassmorphism UI, and deep space atmosphere.
- Game Modes:
- Human vs Bot: Test your skills against an AI opponent.
- Local Multiplayer: Two players on the same screen (Pass & Play).
- Rule Variants:
- Normal: Align 3 to WIN.
- Misère: Align 3 to LOSE (The ultimate strategy challenge).
- Accessibility: Full keyboard navigation and screen reader support (Invisible Accessible Grid).
- Core: React 18, Vite
- 3D Engine: Three.js, @react-three/fiber
- Helpers: @react-three/drei
- Post-Processing: @react-three/postprocessing (Bloom effects)
- Styling: Vanilla CSS (Performance focused)
- Node.js (v16+)
- npm or yarn
-
Clone the repository:
git clone https://github.com/yourusername/3d-morpion.git cd 3d-morpion -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open
http://localhost:5173in your browser.
- Select Opponent: Choose "Solo (vs Bot)" or "2 Players".
- Select Mode:
- Normal: Get 3 symbols in a row (axis or diagonal) to win.
- Misère: Avoid getting 3 in a row!
- Coin Flip: Randomly decides who starts (and who gets the center advantage in mid-game).
- Confirm Move: Click a cube to select it, then click "VALIDER" to confirm.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.