- Joined
- Sep 15, 2008
- Location
- Live in CT, College in NH.
I'm worried about failing out of my Programming class, it's going so fast!
I have to make a Cellular Automata in C#. I have to be able to say how many lines to write, and it loops. I'm guessing a while loop... It prints a white box, and then on subsequent lines it prints boxes based on the last row. "To Decide the color of the square at the nth place, look at the squares in the previous row that are in the nth and (n-1) places. If those squares are the same (Both Black or Both White), then the square on the new line in the nth place will be black."
I don't even understand how to write a white box on a console window! PLEASE help me.
I have to make a Cellular Automata in C#. I have to be able to say how many lines to write, and it loops. I'm guessing a while loop... It prints a white box, and then on subsequent lines it prints boxes based on the last row. "To Decide the color of the square at the nth place, look at the squares in the previous row that are in the nth and (n-1) places. If those squares are the same (Both Black or Both White), then the square on the new line in the nth place will be black."
I don't even understand how to write a white box on a console window! PLEASE help me.