Skip to content

Latest commit

 

History

History
53 lines (48 loc) · 1.48 KB

README.md

File metadata and controls

53 lines (48 loc) · 1.48 KB

Hols der Geier

Hols der Geier was realized in Java as part of the module Fundamentals of Programming.

How to create your own Bot

Upon opening in your favorite IDE, you just need to extend your Bot Class with the Player Class and override the abstract method. Your bot will be integrated automatically, just select it in the options window.

public abstract PlayerCard getNextCardFromPlayer(final int pointCardValue);

Example (from Localplayer):

@Override
public PlayerCard getNextCardFromPlayer(final int oldPointValue) {
        try {
            System.out.print("Your Cards left to play: ");
            this.getCards().forEach(k -> System.out.print(k.getValue() + " "));
            System.out.print("\nYour card: ");
            return new PlayerCard(Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine()));
        }catch (IOException e) {
            System.out.println(e.getMessage());
        }
        return null;
}

Rules

For rules click here!

Upcoming changes

  • Better Exception handling (coding my own handler)
  • Database setup to save stats
  • Use a Logger instead of System.out


Thank you for contributing!

Kind regards,
rabitem