Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game crashes with 3 players in total #96

Open
CloneWith opened this issue Apr 12, 2024 · 0 comments
Open

Game crashes with 3 players in total #96

CloneWith opened this issue Apr 12, 2024 · 0 comments

Comments

@CloneWith
Copy link
Contributor

CloneWith commented Apr 12, 2024

✍️ Describe the bug

Whenever the number of all players is set to three (on a star board), the game crashes without showing an error.

💣 Steps to reproduce

  1. Click New Game
  2. Set players: 2 bots and 1 player, or 1 bot and 2 players
  3. Click Start Game
  4. Game crashed immediately

📱 Tech info

  • Device: Redmi Note 12T Pro
  • OS: MIUI 14.0.10 @ Android 13
  • Version: Halma v13.0

📄 Additional context

This is a trace report generated by my device, should be of some help.

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.LinkedList.checkElementIndex(LinkedList.java:559)
	at java.util.LinkedList.get(LinkedList.java:480)
	at app.halma.play.Player.randomField(Player.java:63)
	at app.halma.play.Player.play(Player.java:31)
	at app.halma.play.Play.play(Play.java:56)
	at app.halma.play.Play.create(Play.java:53)
	at app.halma.play.Play.createInstance(Play.java:28)
	at app.halma.redesign.PlayConfig.clicked(PlayConfig.java:104)
	at app.halma.BaseScreen$Listener.clicked(BaseScreen.java:84)
	at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:88)
	at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:71)
	at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:354)
	at com.badlogic.gdx.backends.android.DefaultAndroidInput.processEvents(DefaultAndroidInput.java:423)
	at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:503)
	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1581)
	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1280)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant