Forum: C# Sep 15th, 2009 |
| Replies: 1 Views: 186 I have a program that use 2 arrays, 1 is the cells array and the other is temporary array
this program generate 20 rows and 64 columns(cells)
each cell compare the itself with the cell on it left... |
Forum: C# Sep 15th, 2009 |
| Replies: 28 Views: 1,167 Hi mate, can you help me?? I can't finish this project.
I have generate 20 row, but the correct one only until row 2, after row 3 everything gone wrong. I already use the temp array and the rules... |
Forum: C# Sep 15th, 2009 |
| Replies: 3 Views: 235 hm i got it, so i need to use 2 arrays like table (row and col).
I have tried this once yesterday, but the cell still be compared with the cell that already changed. Strange!! let me check it once... |
Forum: C# Sep 14th, 2009 |
| Replies: 3 Views: 235 i am developing 64 cell(column) for 20 rows of automata.
I need to compare each cell (in a row) with the left and right cell.
And then, after i finish 1 row, i need to do it for the next row.
So,... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 I think i need to get some sleep..
Thanks for your help.
I will be online in several hours and continuing with my project AGAIN?? :p |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 haha, of course not. why i make this up. It is already 5 o clock in the morning here, and i still struggling in this project
I won't make this up mate :p
I am not too good with programming.
I... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 that's alright. you have helped me a lot.
thanks :)
oh yeah, i think i forget to say something about how to compare.
The last array should be compared to the array on the left and the right... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 oh, one more thing.
Actually, i am not quite understand why you use bool and while loop.
But, I already use your logic and code and put it into a simple line of code (thanks for your help).
this... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 hm.. i just tried it.
maybe it sounds lame.
but i really am not good in C#, and it didn't work.
i tried to change one of the Cells[i].ChangeState() to Cell.NextCellState(Cells[i]) and it... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 Hi, it really helps.
it's true, i get the code and logic that i want.
Thanks you very much :)
cheers |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 nah, u get it wrong hehe..
"This is the rules, if either one of the neighbouring cells has a state equal to the next state of the cell, then the cell is changed to the next state."
what i meant... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 sorry, my mistake, maybe it makes u confused.
but your output didn;t match
lets change the space to "_"
so --> "_" "." "+" "#" (this is the order)
i will make another example
input: ... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 thanks for the reply..
i am not quite sure about what you mean.
but i can give more explanation and example.
Yes, i only need to change changeState at cell [i].
the rule goes through each... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 thanks for the reply..
i am not quite sure about what you mean.
but i can give more explanation and example.
Yes, i only need to change changeState at cell [i].
the rule goes through each... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 thanks for the reply.
But i already check, it is not the answer.
the problem is i need to change the cell state(that i want to compare) to the next state first.
after that compare it to the left... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 oh sorry about that..
i will fix this
by the way, operation1() method is where i put the rules to the automata. ChangeState() method is to change the cell to the next state.
So in this case, if... |
Forum: C# Sep 14th, 2009 |
| Replies: 28 Views: 1,167 Hi, i need help in building a program about automata cellular.
So, there is 4 state of cells, 0 = space, 1 = ".", 2 = "+", 3 = "#"
This state is continuous from 0 - 3, after 3, it will be back to... |
Forum: XML, XSLT and XPATH May 28th, 2009 |
| Replies: 0 Views: 1,285 Hi, this is my final project. I have generated an xml string, and i want to parse it with dom parser, but i have error here..
this is my code:
import java.io.StringReader;
import... |
Forum: RSS, Web Services and SOAP May 27th, 2009 |
| Replies: 2 Views: 2,310 Hi, this is my final project. I have generated an xml string, this is my code:
import java.io.StringReader;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import... |