11 March 2016 - Forum Rules
Started by InfamousKnight, September 03, 2013, 09:08:47 PM
Quote from: KC on September 04, 2013, 03:20:52 PMAs I said several times before, use a state machine. Then seperate logic from output. And abstract data structures.
Quote from: InfamousKnight on September 04, 2013, 03:15:55 PMI couldn't figure out any other way of doing it. I was self aware of that repetitive code. You can't just add and subtract the sides. You can't just make a condition that checks for if its 1 then make it 2 if its 2 then make it one. That would just end up with the same value every time. Making a function wouldn't make any difference either.
if(side == 1) side = 2;else side = 1;
Quote from: KC on September 04, 2013, 03:41:41 PMWhat schools call computer science (I don't personally acknowledge it as such) isn't likely to help you become better. You have to start doing this yourself, and do your own research. I can guarantee you that almost everyone here is self taught, so everyone can attest that.You keep on doing the same trivial things in always the same way. That isn't likely to help you get better. Do something bigger, do it differently. But before that learn how to structure it, how to split it into independent units, and how to use data types to your advantage. Read a few programming books.
Quote from: InfamousKnight on September 04, 2013, 03:30:40 PMState machine? I've never heard of that.
Page created in 0.063 seconds with 20 queries.