Git Product home page Git Product logo

madn's People

Watchers

 avatar

madn's Issues

Bug Indexing der Felder

Blaue Figur hat folgende Fehlermeldung bei einer korrekt eingegebenen Eingabe ausgelöst:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 41 out of bounds for length 40 at model.Model.schickeFigureWeiter(Model.java:198) at controller.CONTROLLER.main(CONTROLLER.java:109) at controller.CONTROLLER.main(CONTROLLER.java:152)

Bug nachdem eine korrekte Eingabe nach einer falschen Eingabe getätigt wurde

Ausgangssituation

Das Programm wartet auf eine Eingabe einer Nummer der Spielfigur eines Spielers.
Hier in diesem Fall ist nur die Eingabe der Nummer 1 zulässig, da sich nur eine Figur auf dem Spielfeld befindet.

"1. Schritt"

Der Benutzer gibt eine falsche Nummer für die Figur ein.
Hier in diesem Fall ist es z.B. die Nummer 3.

--> Das Programm reagiert korrekt auf die Eingabe und gibt aus, das die Eingabe der Nummer 3 nicht zulässig ist, da sich nur eine Figur auf dem Spielfeld befindet.

"2. Schritt"

Der Benutzer gibt anschließen eine richtige, mögliche Nummer für die Spielfigur ein.
Hier in diesem Beispiel ist es die Nummer 1.

"3. Schritt"

Das Programm gibt anschließend folgende Fehlermeldung aus:
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 1 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:458) at controller.CONTROLLER.main(CONTROLLER.java:107) at controller.CONTROLLER.main(CONTROLLER.java:152)

Zweites Ein- und Ausgabefenster

Es wäre gut, wenn die Ein- und Ausgabe über ein zweites Fenster laufen würde, anstatt einer Konsolenaus- und eingabe.

TODO

  • Ausgabe der gewürfelten Zahl
  • Eingabe der Nummer der Figur, die weitergefahren werden soll

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.