Jump to content
xisto Community

cristofd

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. No games yet. Probably the closest thing is the cellular automaton "life", here:http://forums.xisto.com/no_longer_exists/ Tic-tac-toe and guess-a-number are on my to-do list, but they've been there a while. The best general source for brain**** source code is the repository at: http://forums.xisto.com/no_longer_exists/ (Fix censoring in both URLs.) Good luck; -Daniel Cristofani.
  2. Exactly. That part is a comment. The actual working code is these three lines: ,>,[<->>+<-]+<[ A!=B >->>]>[ A==B ->>>]<<[<<+>+>-] and then to explain what it was doing I added comments which are a map of the memory, so for instance when I wrote ,>,[<->>+<-]a-b 0 b 0 0 I meant that after this line of code is done executing, the first cell has (A minus , the second cell has a zero, the third cell has B, and the fourth and fifth cells have zeroes. Then, to prevent the "-" in the comments from being executed as a brain**** command, I put the comments in loops that would never be executed, because the cell was known to be zero. Maybe I should have explained that to begin with? -Daniel.
  3. Not entirely necessary. Here's another approach: ,>,[<->>+<-][a-b 0 b 0 0]+<[ A!=B >->>]>[ A==B ->>>][a-b 0 b 0 0]<<[<<+>+>-][a b 0 0 0] -Daniel.
  4. Someone pointed out that that's actually "move pointer 3; add 2; while (not zero) {". But understanding the semantics of the language is just the first step. If anyone wants to actually understand how the program works, the first step is to read my explanation at http://www.hevanet.com/cristofd/bf/random.txt which assumes some familiarity with the language and with cellular automata too; and the second step is to ask me questions, if it still isn't clear (and you're still interested).Good luck; -Daniel Cristofani.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.