VideojuegoMP is a Java project implementing a small game system with different character types (Vampires, Hunters, Lycanthropes), equipment, and challenges. The project is modular (contains module-info.java) and can be run from an IDE or the command line.
This repository contains the core game logic, character examples, minions, and a game engine (SystemGame) that allows simulating matches and challenges.
- Characters:
Vampire,Hunter,Lycanthropeand their factories. - Minions:
Ghoul,Devil,Human. - Game system:
SystemGamewith a playable flow (I/O handled viaInOutMannager). - Unit tests organized under the
tests/directory.
- Java JDK 11+ (recommended) — the project uses Java modules.
- Recommended IDE: IntelliJ IDEA or Visual Studio Code (with Java extensions).
- Open the project folder in your IDE.
- Import as a Java project if prompted.
- Run the
Main.Mainclass (contains themainmethod).
Note: Because the project is modular, using an IDE or a build tool (Maven/Gradle) is easier.
- Compile the Java files (generic example):
# Create output directory
mkdir out
# Compile sources (Unix-like example; adapt for Windows PowerShell)
javac -d out $(find src -name "*.java")- Run the main class:
java -cp out Main.MainIf you want Windows/PowerShell-specific commands or prefer that I add a pom.xml or build.gradle, I can add them.
Tests are located in the tests/ folder (JUnit is expected). The easiest way to run them is from your IDE (Run tests) or by adding a build tool (Maven/Gradle) that handles JUnit automatically.
If you want, I can:
- Add a
pom.xmlwith JUnit and set upmvn test. - Add a
build.gradleto rungradle test.
src/— Main source code (packages:Main,Character,Abilities,Equipment,Minions,SystemGame,User,Utils).tests/— Unit tests by package.README.md— This file.
- Open an issue describing the change or bug.
- Submit a pull request with a clear description and tests that verify new behavior.
Best practices:
- Follow package and module conventions.
- Add unit tests for new features.
This project is released under the MIT License — see the LICENSE file for details.
- https://github.com/jaimesnh
- https://github.com/dianalopezlozano
- https://github.com/ivannpinna
- https://github.com/arturoovinuesaa
Would you like me to also add a LICENSE file (MIT), a pom.xml/build.gradle for automatic test runs, and a GitHub Actions workflow for CI? 💡