We are about to switch to a new forum software. Until then we have removed the registration on this forum.
This is the function I have to remove black cells and shift the rest down. Right now it is just moving down one row.
void change(int i, int j){
if(cellColor==#000000){
for(f = 1; f < j; f++){
color co = bubbleArray[i][f-1].getColor();
if(co==#ffffff){
cellColor = #ffffff;
newBub(f,cellColor);
visited=false;
}else if(co==#ff0000){
cellColor = #ff0000;
newBub(f,cellColor);
}else if(co==#00ff00){
cellColor = #00ff00;
newBub(f,cellColor);
}else if(co==#0000ff){
cellColor = #0000ff;
newBub(f,cellColor);
}else if(co==#ffff00){
cellColor = #ffff00;
newBub(f,cellColor);
}else if(co==#000000){
newBub(f,#00ffff);
}
}
}
}
Answers
I have to turn this in very soon so it would be very helpful if someone could just look through it and point out anything they notice. Ive been working so long there could easily be something i've missed
I suspect that you want to remove the check on line 2.
But this is not enough code to diagnose your issue.
Post it all.
I can't remove the check because then it removes parts of all of the rows, not just the ones I want it to. Here is the rest of the code, there are other unfinished areas but I just want help on the row shifting.
Whoa. Ok. So that actually runs (after removing the __ on line 41).
Great start!
Here, I cleaned it up a bit.
wow thank you so much!