This is a fun and engaging full stack web application where you play as a cop trying to capture a fugitive!
To get started with the project, follow these steps:
git clone https://github.com/your-username/project-name.git
1.Client
cd client
npm install
npm run dev
2.Server
cd server
npm install
npm run dev
The game involves strategic decision-making and a bit of luck. Here's how it works:
1. City Selection:
- Choose a city from a list of available options. Each city has a unique description to help you decide.
- Consider factors like distance and terrain when selecting your city.
2. Vehicle Selection:
- Based on the city you selected, choose a suitable electric vehicle with enough range to reach the fugitive's location.
- Vehicles are categorized by type and range, allowing you to strategize your approach.
3. Capture Result:
- The game simulates the chase and determines if you successfully captured the fugitive.
- If you made the right choices, you'll see a congratulatory message! Otherwise, the fugitive escapes.
- Frontend (UI): https://yocket-assignment-git-main-salove16s-projects.vercel.app/ - This link takes you to the user interface where you play the game.
- Backend (API): https://pink-glorious-wildebeest.cyclic.app/ (Internal Only) - This link points to the backend API that powers the game logic. Access to this link might be restricted for security reasons.
Landing Page:
The landing page provides a clear overview of the game's objective and basic rules.
City Selection:
- Carefully read the descriptions of each available city.
- Consider the distance and potential challenges of each location.
Vehicle Selection:
- Match your vehicle selection to the chosen city's distance requirements.
- A high-range vehicle might be necessary for sprawling cities, while a moderate-range option could suffice for closer locations.
Result:
- The game will inform you of the outcome based on your city and vehicle choices.
- A successful capture earns you bragging rights!
We hope you enjoy playing Capture the Fugitive! Feel free to experiment with different strategies and city-vehicle combinations to improve your capture rate.