A fun browser-based game where you test your ability to distinguish between matcha drinks and swamps! The greenish appearance of matcha makes it surprisingly similar to swamp water - can you tell them apart?
- You'll be shown two images side by side
- Click on the image you think is the matcha drink
- Get it right and move to the next round
- Make one mistake and the game is over!
- Try to achieve the highest score possible
Before the game can work, you need to add images to the images folder:
- Add 10 matcha drink images to
images/matcha/named: matcha1.jpg through matcha10.jpg - Add 10 swamp images to
images/swamp/named: swamp1.jpg through swamp10.jpg
See images/README.md for more details on where to find images.
Simply open index.html in your web browser to play the game locally.
To deploy this game to GitHub Pages:
-
Create a new repository on GitHub called
matchaorswamp -
Initialize git in this directory (if not already done):
git init git add . git commit -m "Initial commit: Matcha or Swamp game"
-
Connect to your GitHub repository:
git remote add origin https://github.com/YOUR_USERNAME/matchaorswamp.git git branch -M main git push -u origin main
-
Enable GitHub Pages:
- Go to your repository on GitHub
- Click on "Settings"
- Scroll down to "Pages" in the left sidebar
- Under "Source", select "main" branch
- Click "Save"
-
Your game will be live at:
https://YOUR_USERNAME.github.io/matchaorswamp/
matchaorswamp/
├── index.html # Main HTML structure
├── styles.css # Game styling
├── game.js # Game logic
├── images/
│ ├── matcha/ # Matcha drink images (add 10 images)
│ └── swamp/ # Swamp images (add 10 images)
└── README.md # This file
- Pure frontend implementation (HTML, CSS, JavaScript)
- No dependencies or build process required
- Responsive design that works on desktop and mobile
- Smooth animations and visual feedback
- Score tracking
- Randomized image pairs to prevent memorization
You can easily customize the game by:
- Adding more images to the
images/matcha/andimages/swamp/folders - Modifying the
matchaImagesandswampImagesarrays ingame.js - Changing colors and styles in
styles.css - Adjusting game logic in
game.js
This game works in all modern browsers:
- Chrome
- Firefox
- Safari
- Edge
Feel free to use, modify, and distribute this game as you wish!
Created as a fun project to play with the visual similarity between matcha drinks and swamps.