Skip to content

jaimesnh/VideojuegoMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VideojuegoMP 🎲

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.


🔍 Description

This repository contains the core game logic, character examples, minions, and a game engine (SystemGame) that allows simulating matches and challenges.


✅ Key features

  • Characters: Vampire, Hunter, Lycanthrope and their factories.
  • Minions: Ghoul, Devil, Human.
  • Game system: SystemGame with a playable flow (I/O handled via InOutMannager).
  • Unit tests organized under the tests/ directory.

🧰 Requirements

  • Java JDK 11+ (recommended) — the project uses Java modules.
  • Recommended IDE: IntelliJ IDEA or Visual Studio Code (with Java extensions).

🛠️ Build & Run

From an IDE (recommended)

  1. Open the project folder in your IDE.
  2. Import as a Java project if prompted.
  3. Run the Main.Main class (contains the main method).

From the command line (optional)

Note: Because the project is modular, using an IDE or a build tool (Maven/Gradle) is easier.

  1. 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")
  1. Run the main class:
java -cp out Main.Main

If you want Windows/PowerShell-specific commands or prefer that I add a pom.xml or build.gradle, I can add them.


✅ Running tests

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.xml with JUnit and set up mvn test.
  • Add a build.gradle to run gradle test.

📁 Repository structure

  • src/ — Main source code (packages: Main, Character, Abilities, Equipment, Minions, SystemGame, User, Utils).
  • tests/ — Unit tests by package.
  • README.md — This file.

🤝 Contributing

  • 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.

📝 License

This project is released under the MIT License — see the LICENSE file for details.


📬 Authors


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? 💡

About

Práctica del Videojuego para la asignatura de Metodología de la programación

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages