A browser-based farming game set in Tunisia. Real weather data, real crop prices, real regions. Built with vanilla JS + Open-Meteo API.
# 🌾 FarmQuest TN
A browser-based farming game set in Tunisia — real weather data, real crop prices, real regions.
Built with vanilla JavaScript, no frameworks, no dependencies.
## 🎮 Live Demo
Play FarmQuest TN ← [
farmquest-tn.vercel.app]
## 🌟 Features
- Real weather via Open-Meteo API (no API key needed)
- Real Tunisian crop prices from wholesale market data
- 5 Tunisian regions: Tunis, Sfax, Nabeul, Kairouan, Gabes
- 5 crops with seasonal availability: Tomato, Olive, Pepper, Potato, Watermelon
- Dynamic market prices that change by season and day
- Random weather events that affect your harvest
## 🛠️ Tech Stack
- HTML / CSS / JavaScript (vanilla)
- Open-Meteo API (free, no key required)
- Deployed on Vercel
## 🚀 Run Locally
```bash
git clone
github.com
cd farmquest-tn
python3 -m http.server 8000
```
Open your browser at `
localhost`
## 📁 Project Structure
```
farmquest-tn/
├── index.html
├── css/
│ └── style.css
├── js/
│ ├── main.js # entry point, loads data
│ ├── game.js # game loop, days and seasons
│ ├── farm.js # planting and harvesting logic
│ ├── market.js # dynamic pricing system
│ ├── weather.js # Open-Meteo API integration
│ └── ui.js # rendering and display
└── data/
├── crops.json # crop data and prices
└── regions.json # Tunisian regions and coordinates
```
## 🌍 Data Sources
- Weather: Open-Meteo
- Crop prices: Bir El Kasaa wholesale market, Tunisia
## 👨💻 Author
Built by @YOUR_USERNAME