Question: Write a JavaFX program to play a number sequence game with the player. The game should display a sequence of single digit numbers on the

Write a JavaFX program to play a number sequence game with the player. The game should display a sequence of single digit numbers on the screen one character at a time. The player then tries to repeat the sequence back. The program should have a virtual keyboard on the screen consisting of buttons for each letter in the alphabet. The game should start with a random sequence of four characters. The human player should enter the sequence. If correct the program should notify the player and a new sequence whose length is one greater begins (5,6,7...). This should repeat until the player gets the sequence wrong and then the program should notify the user what the length of the longest sequence was and then ask if the program should restart.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!