Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 19 ■ Game Content enGine: ai LoGiC with random Content SeLeCtion methodS

Let’s again utilize the Run ➤ Project work process and test this new code. When you click the spinner,
the game board now stops at the orange quadrant when 315 is picked by the random number generator, as
shown in Figure 19-10. Now we can move on to add code to populateQuadrantTwo() and continue with our
testing process.


Figure 19-9. Shift the angle offset evaluation down (over) by one, bringing 315 to the top and pushing the
others down

Free download pdf