An Educational Text-Based RPG to Teach Disaster Preparedness
This project is a text-based RPG game built with IBM’s AI cloud services. It aims to help players learn how to prepare for natural disasters and make safer decisions during emergencies, especially heavy rainfall and flooding. The game provides a fun and interactive way to understand disaster management through dynamic scenarios where every choice matters!
- Engaging Storyline: Follow the journey of a character as they prepare for incoming heavy rainfall.
- Dynamic AI-powered Scenarios: IBM Cloud AI generates real-time advice, challenges, and feedback.
- Educational Focus: Reinforces preparedness strategies like emergency kits, evacuation plans, and community collaboration.
- Decision-Making Practice: Players learn how their choices influence safety and outcomes.
- Adaptive Gameplay: The game adjusts based on the player’s decisions, offering different paths and endings.
- IBM Cloud AI Services (Natural Language Processing & Text Generation)
- React
- Node.js
- Express
Want to run the game locally? Follow these steps:
- Create an IBM Cloud account and configure the AI services used for text generation.
- Add your API keys in the
.envfile following the provided template. It should look like this:WATSONX_AI_AUTH_TYPE=iam WATSONX_AI_APIKEY='<YOUR_KEY_HERE>' - Clone the repository:
- Start the client
cd client npm run dev cd .. - Start the server
cd server npm start - open your browser and go to: http://localhost:5173
- Enjoy the game and start making safe decisions to handle heavy rainfall scenarios!
Special thanks to IBM Cloud for providing access and support throughout the project. Thanks for making this Hackathon possible!
Enjoy the game and learn valuable lessons about disaster preparedness!