On Fri, Dec 19, 2008 at 10:45 AM, Elliott Hird <penguinoftheg...@googlemail.com> wrote: > On 19 Dec 2008, at 15:33, comex wrote: > >> That's an easy way to lose, yes, since you'd be zeroing your own flag. > > put the > first
Then you run off the edge of the array, since you don't know what size it is. I think this is sound, although I think the concept of being able to mess with each others' code is more exciting. You could just have each player's instruction pointer point to somewhere in the data, perhaps like [player 1 flag] [player 1 code] --------------- [player 2 code] [player 2 flag] or even circular < ----- [player 1 flag] [player 1 code] --------------- [player 2 code] [player 2 flag] ------- < wraparound although I guess corewars/assembly is a lot better suited to that kind of play than brainfuck.