Results 1 to 5 of 5

Thread: Brain**** - is it in you?

  1. #1
    Senior Member
    Join Date
    Sep 2003
    Posts
    500

    Brain**** - is it in you?

    This one goes out as a challenge to all the programmers out there.

    Here is the challenge, make a calculator in Brain****. For those of you that don't know what Brain**** is, it is a programming language that was created so that it could run under the smallest compiler ever (240 bytes!) But that said, there are only 8 possible commands in this language:

    > Increment the pointer.
    < Decrement the pointer.
    + Increment the byte at the pointer.
    - Decrement the byte at the pointer.
    . Output the byte at the pointer.
    , Input a byte and store it in the byte at the pointer.
    [ Jump past the matching ] if the byte at the pointer is zero.
    ] Jump to the matching [.


    If you just said
    WHAT THE ****!?
    then you are half way there. For more info on the language it self go here:

    http://www.muppetlabs.com/~breadbox/bf/

    And as an added bonus, the Brain**** "hello world"


    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++. [-]>++++++++[<++++>-]<.>+++++++++++[<+++++>-]<. >++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+. [-]++++++++++.



    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++. [-]>++++++++[<++++>-]<.#>+++++++++++[<+++++>-]<. >++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+. [-]++++++++++.
    (all info was taken from http://www.muppetlabs.com/~breadbox/bf/ )
    You shall no longer take things at second or third hand,
    nor look through the eyes of the dead...You shall listen to all
    sides and filter them for your self.
    -Walt Whitman-

  2. #2
    AntiOnline Senior Member souleman's Avatar
    Join Date
    Oct 2001
    Location
    Flint, MI
    Posts
    2,883
    +
    [-,>+>+>+>+>+>+<<<<<<-------------[>-<-------------------[>>-<<----------[
    >>>-<<<-[>>>>-<<<<--[>>>>>-<<<<<--[>>>>>>[-]>+<<<<<<<-]]]]]]>
    [->->->->->-<<<<<]>[->->->->-<<<<<<+>>]>
    [->->->-<<<<<<<-<-[>[>+>+<<-]>>[<<+>>-]<<<-]+>[-]+>[<<+>>-]>>]>
    [->->-<<<<<<<-[<+>-]+>>>>]>[->-<<<<<<<-[<->-]+>>>>>]>
    [-<<<<<<<-[>+>+<<-]>->[<<+>>-]<<<-[>>>>+<<[>+>[-]<<-]>[<+>-]>
    [-<<<[>+>+<<-]>>[<<+>>-]>>+<]<<-<<-]+>[-]+>
    [-]>>>[<<<<<+>>>>>-]>>]>[<+>>,>++++++++[<---->-]<[>+++++[<--->-],>++++++++
    [<---->-]<]<[<]>>[<-[>++++++++++<-]+>>]<[[<]>+[>]<-]<
    [-<]>[<<<<<<+>>>>>>-]<<<<<+>>>>>>>]<<<<<<<]<[>>+<<-]>+>-[>+<<
    [-]>-]>[<+>-]<[>+++++++++<[>>>+<<[>+>
    [-]<<-]>[<+>-]>[<<++++++++++>>>+<-]<<-<-]<++++++++++>>[<<->>-]>>
    [-]>[<<<+>>>-]<<<]<[>]<[->++++++++[<++++++>-]<.[-]<]>>













    okay... so google can be helpful ...
    \"Ignorance is bliss....
    but only for your enemy\"
    -- souleman

  3. #3
    Senior Member
    Join Date
    Sep 2003
    Posts
    500
    Ha, I meant try and make it on your own. I found it on google too.
    You shall no longer take things at second or third hand,
    nor look through the eyes of the dead...You shall listen to all
    sides and filter them for your self.
    -Walt Whitman-

  4. #4
    AntiOnline Senior Member souleman's Avatar
    Join Date
    Oct 2001
    Location
    Flint, MI
    Posts
    2,883
    thats the joy of open source. Why write something if its already been done?
    \"Ignorance is bliss....
    but only for your enemy\"
    -- souleman

  5. #5
    Senior Member
    Join Date
    Sep 2003
    Posts
    500
    *claps*
    You shall no longer take things at second or third hand,
    nor look through the eyes of the dead...You shall listen to all
    sides and filter them for your self.
    -Walt Whitman-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •