🔭 In this project, I applied the #SOLID architecture principles and the #OOP (Object Oriented Programming) principles in a #RPG (Role Playing Game) game framework.
Highligthed topics are:
-
Inheritance, Abstraction, Encapsulation and Polymorphism;
-
Use of Composition;
-
Implement in #TypeScript: Interfaces, Classes, Instances, Attributes, Methods and Objects;
To run the repository locally, clone the project and use the following commands to initialize Docker and install the dependencies:
docker-compose up -d
docker exec -it trybers_and_dragons bash
npm install // to install the dependencies
docker-compose down // to completely stop the application
Warning: After installing the dependencies, check the files in the ./src folder, which contains the classes created to build the characters. In the ./src/index.ts file there are some examples and if you want to explore, build characters and carry out battles, the npm start command executes this code script in the terminal.