So I rebuild my project, that's seemed to fix the biggest problem.
I can connect to my db and everything works, but on startup I still get an error, that seems to be of no importances, so I could ignore it, but it still bugs me, so maybe one of you could explain to me what it meens and how to fix it?
I'm making a standalone springbootapp that uses jpa-hibernate for the databasconnection and javafx as frontend.
First I was using a testdb from db4free, everything was working fine, untill it didn't anymore...
I don't see what the problem is, cause I have done the same thing numerious times before and reusing a lot of the code.
Since I couldn't make it work with the db from db4free, I set up a local mysqldb.
I removed my .m2 folder, cleaned my project and recompilled.
But I stille get some errors, while before I got a nullpointer for the transactionmanager, now I can't connect to the db at all.
I tested my connection with datagrip, so the database is online and I'm using the right credentials.
Something that's also weird, it should the 5.1.46 mysqlconnector, but in my stacktrace I could see it refers tot he 5.1.39 connector.
A full house is still three of a kind, if the player chooses to put it at three of a kind instead of full house, cause for example he already has filled in full house, he should be able to.
Poker and yahtzee are about the same, one is with dice, the other with cards...
I come from a java background, but start a new job tommorow, where everything still is written in vb6.
To get myself a bit familierd with the language I started to make a simple yathzee game.
Everything works great, but somethings take way more could as they should.
For example I included the code I use to check if the player has a three of a kind...
Take note of the second if statement, there most be a easier way to do this...?
I don't understand the question really, especialy the part about the constructors, but I can tell you this, you can't change the size of an array, you would have to create a new array each time with a different size.
I would use an arraylist instead
I didn't run you code, but at first glance you make two rectangle, but instead of positioning them different, you give them a different size, so the first rectangle is probably shown but is hidden behind the second.
I would advise you to eather set the positioning with x and y or use a splitpane instead of a stackpane
If I was you I would use an arrayList, not an array, if you use an arraylist you don't have to ask the user how mutch values the user wants to put in.
Anyhow, you could ask the user to seperate the values by an space. Take it all in as an string (String s = array.nextLine();), then split the string (String splited = s.split(" ");).
Loop through it (for(int i = 0, i < size, i++)) and asign in it (arr[i] = Integer.parseInt(splited[i]);)