Giter Site home page Giter Site logo

informaticup2020's Introduction

InformatiCup 2020

Lösungsvorschlag zur Teilnahme InformatiCup 2020.

Installation

Systemvoraussetzungen

Zum Ausführen des Programms wird Python ab Version 3.5 benötigt.

Repository klonen

Um mit den Quelldateien arbeiten zu können, wird zuerst das Repository geklont:

git clone https://github.com/MarianKeller/informatiCup2020

Abhängigkeiten installieren

Alle Abhängigkeiten lassen sich mit pip aus der requirements.txt installieren.

pip install -r requirements.txt

Benutzung

Server starten

Dazu wird das Skript "genetic.py" ausgeführt. Es stellt einen Server auf dem Port 50122 bereit, welcher über eine kleine REST-API wahlweise den Trainingsmodus, oder den Spielemodus startet.

python genetic.py

REST-API

URL: /main PORT: 50122 METHODE: POST Erforderlich: evolve=[] ODER play=[] Optional: startFromLast=[boolean]

Beispielaufrufe Trainingsmodus starten, letzte generierte Population weiterführen:

{
	"evolve" : "1",
	"startFromLast" : "True"
}

Spielemodus starten, auf Anfragen vom ic20 Client auf Port 50122 unter /play warten:

{
	"play" : "1"
}

Testen

Bisher steht mangels ausreichender Rechenzeit noch kein ausreichend gutes Genom zur Verfügung. Es ist empfehlenswert, vorher einige weitere Generationen im Trainingsmodus zu erzeugen um die Leistung zu verbessern. Der IC20 client ist, falls der Server lokal läuft, zum Beispiel folgendermaßen zu starten:

ic20_windows -u http://localhost:50122/play

Deployment mit Docker

Sollte Docker installiert sein, lässt sich mit folgenden Befehlen ein Docker container erzeugen und aufrufen:

docker build -t informaticup2020:latest .
docker run -d -p informaticup2020

informaticup2020's People

Contributors

mariankeller avatar niky1 avatar

Watchers

 avatar  avatar

informaticup2020's Issues

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.