Git Product home page Git Product logo

cosmevalera / leagueofpokemon Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 5.94 MB

Embark on a thrilling turn-based RPG adventure with League of Pokemon! Choose from 4 different champions and battle Pokemon enemies to earn rewards that improve your champion's equipment. Engage in PVP battles with friends and unlock new champions along the way. Get ready to battle like never before!

Java 100.00%
java gui pokemon league-of-legends leagueoflegends

leagueofpokemon's Introduction

League of Pokemon

๐Ÿพ League of Pokemon is a fun and challenging turn-based game inspired by classic RPGs. Players choose from four possible starters and battle their way through various enemies, unlocking better equipment and other starters along the way. With a built-in PVP feature, you can even battle your friends' starters on the same computer. GitHub release

Tech

This game was created with Java Swing, which is Java's implementation for creating GUIs.

๐Ÿ“ฆ Prerequisites

  • java 14 (or higher)
  • Apache Maven (3.6.3 or higher)

๐Ÿš€ Getting Started

To get started with League of Pokemon, you'll need to first compile the source code and then execute it. Here's how:

  1. Clone or download the repository to your local machine.

  2. Open your terminal and navigate to the root directory of the project.

  3. Compile the source code by entering the following command*:

javac --enable-preview -source <java version> -cp src/main/java src/main/java/view/GUI.java

*Make sure to replace <java version> with the Java version installed on your machine. For instance, if you have Java version 17.0.7, you would substitute <java version> with 17.

  1. Once the code has been compiled successfully, you can execute it by entering the following command:
java --enable-preview -cp src/main/java view.GUI

Now you are all set :), if everything went right you should be seeing this:

๐Ÿงช Tests

To run the automated tests for League of Pokemon, use the following command:

mvn test

This command compiles and runs all the unit tests in the project using Apache Maven.

๐Ÿ‘ฅ Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Images (GUI)

  • Choose an Initial Champion
  • Fight
  • PVP Fight
  • Shop
  • Information

leagueofpokemon's People

Contributors

cosmevalera avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

chemaclass

leagueofpokemon's Issues

Create tests

You can use this pet project to start training your testing skills.

What types of tests are out there?

Why testing is important?

Create tests for your logic is crucial. A nice way to start is basically learning how to write unit tests, and the best way to learn is by doing ๐Ÿ˜‰

It will help you to identify how coupled your logic is to the actual infrastructure code. This will be interesting for you to look for opportunities of refactoring of your working code while you are actually creating a safety net to cover your logic in case you accidentally break it.

No rush, keep it easy. And step by step ๐Ÿค˜

Use English as convention in your code base

Currently, you're mixing Spanish and English for your variables and function names. I strongly suggest standardized this to one language; either Spanish OR English, but not both.

On this matter, and due to the reality, I would suggest using English by default, because it's the standard language in this industry, so it will help you to get easier into the flow of what's coming ;)

PS: Also, you will get used to it easy peasy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.