8000 GitHub - DominikDoom/HolsDerGeier: HolsDerGeier Spiel in Java im Rahmen des Modules Grundlagen der Programmierung (WS 2020/21) · GitHub
[go: up one dir, main page]

Skip to content

About

HolsDerGeier Spiel in Java im Rahmen des Modules Grundlagen der Programmierung (WS 2020/21)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

98 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

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

  • GUI Support
  • Add more Bots (you can simply add your own and contribute to the project by cloning and create a Pull Request afterwards!)
  • 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

About

HolsDerGeier Spiel in Java im Rahmen des Modules Grundlagen der Programmierung (WS 2020/21)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0