Question
I need help finishing a Floodit game in java listed below in the following pastebin files. In specific the flood function inside the Floodfunction class
I need help finishing a Floodit game in java listed below in the following pastebin files. In specific the flood function inside the Floodfunction class needs to be implemented. The flood() method is for both the player mode and the autoplay mode. The flood function will take one parameter, a color, as an Integer of the color index, ranging from 0 to 5 (representing six colors). The flood function should change the color of the cells in the flood area to the chosen color (the input), and expand the flooded area by including adjacent cells that share the same color. I need the flooded cells to be stored in the member value, floodList, of the FloodFunction class, which by default is a LinkedList. The floodList initially contains the cell at the top-left corner (the seed cell). The following link shows how the game is played out: http://unixpapa.com/floodit/
Constants.java: http://pastebin.com/fSUYbr59
Coord.java: http://pastebin.com/ru7jbgpu
Driver.java: http://pastebin.com/D4mfqpT2
FloodFunction.java: http://pastebin.com/g81WN3pB
GUIFrame.java: http://pastebin.com/4Z2Gtnpv
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started