I need a program written mostly in java that can play the game bookworm. I have provided a screenshot of the game. The program must scan and recognize words on the board find the highest scoring word and manipulate the mouse to make the word. Program must use red tiles as the will end game early.
The goal of this game is to create as many words as you can in five minutes by linking adjacent letter tiles. The longer the word, the more points you earn!
To create a word, click on a letter tile using your mouse, then click on any adjacent letter tile to select the next letter in the word. When you have finished spelling out your word, click the “Submit” button or double-click on the last letter tile in the word. When you submit a word, the worm will eat the letters. The remaining letter tiles will drop down and fill in the gaps.
Valid words must be at least 3 letters long. Look at the word you’ve spelled in the level indicator box (under the score) and you can see if the word is recognized by the Worm. If you see a point value, it will be counted. If there is no visible point value (i.e. if the word is not a valid word), there will be no change in your score.
At any time during the game, you can re-scramble the letter tiles by clicking on the Worm. Use this function if you run out of word combinations.
Special Tiles:
A GREEN tile appears for every 5 tiles you remove.
(NOTE: Two 3-letter words will drop a green and count as one towards your next green.)
A RED tile appears every 5 words.
A GOLD tile appears for a 4 or 5-letter word.
A SAPPHIRE tile appears for a 6 or 7-letter word.
A DIAMOND tile appears for 8+ letter word.
(NOTE: Greens and Reds appear at the top of the board. Gold, Sapphire, and Diamond appear randomly in the board.)
(NOTE: Several different special tiles can be created at once, immediately after submitting a word, but never two of the same kind of tile. These tiles remain on the board, so that several of the same kind may accumulate over multiple word submissions.)
The Red tile is a fire tile, that appears at the top of the board and burns its way towards the bottom as you play. Be careful! If a Red tile hits the bottom row, your game will end. You need to form a word using this tile before this happens to safely eliminate it from the board. The Red tile does not provide an additional multiplier, and is worth the same number of points as a normal tile with the same letter.