adessose / brainysnake Goto Github PK
View Code? Open in Web Editor NEWBrainySnake - Program your AI and see who's better!
License: MIT License
BrainySnake - Program your AI and see who's better!
License: MIT License
Löschung der RoundEvents in der Methode endRoundForPlayer(PlayerHandler playerHandler) in der Klasse GameMaster.
Der Aufruf playerHandler.endround() sorgt für die Leerung. Der nachfolgende Aufruf this.playerController.updatePlayerState() arbeitet entsprechend mit einer leeren RoundEvents Liste.
Abfrage des Spieler aus dem PlayerState gibt den PlayerTail als einzelnen Point2D wieder. Dieser Punkt bezieht sich desweiteren auf den Kopf der Schlange.
Eine Rückgabe als LinkedList zur gesamten Übersicht der Schlange wäre sinnvoll.
Es soll ein Beispiel-Agent ergänzt werden, welcher als Vorlage für weitere Agenten dienen soll.
TODOS:
if (collectedPoints < -1) { playerHandler.penalty(); }
sollte sein:
if (collectedPoints <= -1) { playerHandler.penalty(); }
A gamemode where you can play with someone else on your keyboard.
This is a new feature to diversify the strategies for the agents. The point-labyrinths are special hotspots in level, where the agents can loot many points in match. The challenge to get this points is to find a way threw the labyrinth and get the snake to the exit.
Here ist an example how this labyrinths should look like:
requires #29
This screen appears after "Start Game" in the main menu was choosen
Implementing a new function to make the keyboard input smooth.
It is not necessary to compile the whole project for just adding a new agent oder playing around with agent logic. The Project should be devided in two parts. One for the Game-Graphic and Server-Logic which can be deployed for the second part, the player/agent Logic part.
Therefore the Server-Logic should be outsourced to an external project and delivered as own jar-File. TODO add further informations here
Actually the initial positions of the barriers in level always the same.
"Slowest" player determines game update. E.g. when a player takes >500ms to respond, the whole game will have a significant delay.
Possible solution: Limit players to a response time of 100ms by configuring MAX_AGENT_PROCESSING_TIME_MS
in config.
Drawbacks: Complex algorithms might not be viable.
Falls es so gedacht ist, dass der Kopf der Schlange das 22. Feld des ViewFields darstellt, muss dies noch angepasst werden. Momentan befindet sich der Kopf außerhalb des ViewField
Actually the initial positions of the agents in match are fixed (also the orientations).
Oder soll eine Schlange erst sterben, sobald der Kopf als letztes Element verschwindet?
Fixing a bug where the bitten snake looses a point but the biting snake doesn't get one.
Bei Erhöhung der Spieleranzahl muss manuell die Anzahl der Farben erhöht werden
Die Variablen viewWidth und visibilityRange in der Klasse PlayerView werden nicht in Bezug auf die Config-Klasse gesetzt. Hierdurch werden dem Spieler falsche Werte zurückgegeben.
requires #29
appeares if "Settings" was choosen
dropdown: size of the level in fields (like 50x50, 75x75, 100x100)
numeric: number of apples (red dots)
numeric: FPS
numeric: Number of rounds
numeric: initial length of the snake
number of barriers
try to add some basic validation
Die aktuell bestehende Player API Dokumentation beschreibt einen veralteten Stand der Software. Die Funktionsweise und Variablen wurden aktualisiert in der Software.
We need a SettingsButton and a screen where you can change settings in Config.
Our game is way to silent
The music should be free licensed and suitable the minimalistic pixelart style.
After you've played a game you can't start another one because you simply end up in the Winning Screen of the game before.
According to our Contribution-Guide we agreed to us english as our main project language. Therefore our readme should be translated, or provided in german and english.
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:206)
at de.adesso.brainysnake.Gamelogic.Player.PlayerController.getPlayerStatus(PlayerController.java:111)
at de.adesso.brainysnake.Gamelogic.GameMaster.gameLoop(GameMaster.java:104)
at de.adesso.brainysnake.Gamelogic.GameMaster.update(GameMaster.java:87)
at de.adesso.brainysnake.Gamelogic.Game.update(Game.java:31)
at de.adesso.brainysnake.BrainySnake.render(BrainySnake.java:149)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
Caused by: java.lang.NullPointerException
at de.adesso.brainysnake.sampleplayer.SamplePlayer.tellPlayerUpdate(SamplePlayer.java:31)
at de.adesso.brainysnake.Gamelogic.Player.PlayerHandler.requestPlayerUpdate(PlayerHandler.java:135)
at de.adesso.brainysnake.Gamelogic.Player.PlayerController$PlayerUpdateRequestCallable.call(PlayerController.java:180)
at de.adesso.brainysnake.Gamelogic.Player.PlayerController$PlayerUpdateRequestCallable.call(PlayerController.java:170)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:206)
at de.adesso.brainysnake.Gamelogic.Player.PlayerController.getPlayerStatus(PlayerController.java:111)
at de.adesso.brainysnake.Gamelogic.GameMaster.gameLoop(GameMaster.java:104)
at de.adesso.brainysnake.Gamelogic.GameMaster.update(GameMaster.java:87)
at de.adesso.brainysnake.Gamelogic.Game.update(Game.java:31)
at de.adesso.brainysnake.BrainySnake.render(BrainySnake.java:149)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
Caused by: java.lang.NullPointerException
at de.adesso.brainysnake.sampleplayer.SamplePlayer.tellPlayerUpdate(SamplePlayer.java:31)
at de.adesso.brainysnake.Gamelogic.Player.PlayerHandler.requestPlayerUpdate(PlayerHandler.java:135)
at de.adesso.brainysnake.Gamelogic.Player.PlayerController$PlayerUpdateRequestCallable.call(PlayerController.java:180)
at de.adesso.brainysnake.Gamelogic.Player.PlayerController$PlayerUpdateRequestCallable.call(PlayerController.java:170)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Appears if the game ends
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.