Skip to content
No description, website, or topics provided.
Java Shell
Branch: master
Clone or download
neukoluc and burkhfla enable SimpleAiAgent to trade with the bank (#30)
* enable SimpleAiAgent to trade with the bank

* correct test
Latest commit c66fc61 May 28, 2020

README.md

Settlers Of Catan

PSIT4 project by

  • Mischa Kolb
  • Daniela Egli
  • Luca Neukom
  • Flavian Burkhard
  • Andreas Meier
  • Simon Schneider
  • Valentino Tella
  • Thomas Witrahm
  • Karin Mönch

This is the Java Backend for the project.

Architecture

Guice is used for Dependency Injection. The default port 4567 is used.

JUnit5 is used as the testing framework.

Examples

ExampleEndpoint

This interface is a demonstration on how to create endpoints with sparkjava.

You will need to follow these steps to recreate this:

  • Create your interface. This must extend the interface Endpoint.
  • Create an implementation, see ExampleEndpointImpl.
  • Use the methods provided by the Spark class to define your routes in the init method. See http://sparkjava.com/documentation.
  • Write tests for your endpoint, see ExampleEndpointTest.
  • Add your endpoint to EndpointModule. The line endpointBinder.addBinding().to(ExampleEndpointImpl.class) tells Guice to pass the endpoint to any class requesting them to be injected. In this case, this will be the Server class, which will then run your endpoint.
  • Run the main method in Server. The endpoint is now available under https://localhost:4567/hello.
You can’t perform that action at this time.