Ik yall cant help really but if anyone can help me better understand what I am supposed to do or point me in the right direction would help tons, we just started learning javaFX and this has turned out to be really difficult
(Game: display three cards) Display a pane (type, of your choice) that contains three labels. Each label displays a card, as shown in Figure 14.43c. The card image files are named 1.png, 2.png, . . ., 54.png (including jokers) and have been sent by email in the folder cards. Place this folder in the same directory as your program. All three cards are distinct and selected randomly. Your program must accomplish this for full credit. Do not call the Java built in shuffle method.
To ensure that your cards are random, you will need to write a method that “shuffles” your deck of cards and picks the top three to be displayed or you may choose to have a random number generator derive three integers between 1 and 54 and select you png files base on these three random numbers. There is a routine in the textbook, pg. 250, point 7-Random shuffling, that takes an array of n random integer numbers and “shuffles” them. This is a good routine to use for this problem. You create an array of 54 integers, initializing the cells 0 thru 53 to 1 to 54, then shuffle using the routine from the textbook, the 3 random cards you need will be the three at the top of the array. The integers in the cells 0, 1, and 2 of the array will be the index or number needed to build the string for the .png file. For example, if theArray[0]=34, the string for the file name would be “cards/” + theArray[0] + “.png” ==== “cards/34.png”.
Note: The shuffle method in the textbook guarantees 3 distinct random numbers will be generated. You may choose not to use this routine, but you must be sure that you have 3 distinct random numbers. If you are just generating 3 random numbers and using those to index the proper card back, it is possible to generate duplicate random numbers, so you must do some checking to verify the 3 numbers are distinct before displaying the images.