• 0

    posted a message on blast...I hate this chair
    I think you're just getting shorter.
    QUICK! Call the shrinks!
    You have the shrinks! [/badpun]
    Posted in: General Off Topic
  • 0

    posted a message on Learning PHP, making a game
    Quote from Taehl »
    "desc" is a column, yes - it contains each room's text description. And that counting-from-0 thing, ah, right, I guess using Lua so much made me forget that. But it finally works!

    After more hammering on the script, I've implemented the "game"'s first two features: It tracks how many times each room has been viewed, and it knows when rooms should get new doors, based on the formula (currentdoors+1)^(rooms^0.125+1). Or, should I say, pow(($numDoors+1), (pow($roomsTotal, 0.125)+1)).

    Next up, showing a room's doors as links to other rooms...

    Is anyone interested in this, or should I not bother putting it online?

    I'm interested.
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from madk »
    Well? I'm glad to help and I'm sure nex is. What exactly don't you understand?

    For the second line of the pseudo-code, what does it mean when you "read" a BF script from a file?
    I also don't know what "intercept" means.
    Look here, I don't have an exquisite vocabulary for programming terms.
    I'm not in a good school, I'm not in college, high school, not even middle school.
    Don't assume that I understand everything about C.
    And what is a "pointer"?
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Fine you can find me and kill me I only understand 5% of that.
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from nexekho »
    One of the major parts of being a programmer is breaking it down into smaller tasks. The first step would be to read the file into a big string, then to break that big string up into fragments according to spaces and newlines, then to recognise symbols in the fragments. That's a good start and if you can get that far then you can set about analysing the structure of this big list of fragments, to see how it would flow and such.

    I don't know what that means.
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from madk »
    All you're doing is replacing letters with numbers. An interpreter sees code and does what it says.

    The only difference between an interpreter and a compiler is that a compiler spits the code out to assembly to make an executable. An interpreter makes it into its own form of assembly and runs it. Mine is already close to assembly, so little of that is going on.

    I am still not capable of making an interpreter.
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from madk »
    :/

    That's not a language.

    Then what is it? :/
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from madk »
    Do share.

    Well, it's like a different version of the decimal ASCII table chart.
    Here's Hello World in my language:
    80 50 102 102 105 13 113 105 108 102 40 14

    It's not original I think.
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from madk »
    There are only 8 commands. It's not difficult to pick up. It is difficult to write anything useful in it, but that's beside the point. :tongue.gif:

    But I got an idea for an esoteric language. D:
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from madk »
    You can do it :tongue.gif:

    I believe in you! You can do it! YOU WILL SUCCEED. Because if you don't, I will look for you. And I will find you, and I will kill you.

    I don't even know BrainF*ck...
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from madk »
    Pseudocode:

    Read source file
    
    From beginning of the code to the end {
      If symbol is '>'
        Cell++
      If symbol is '<'
        Cell--
      If symbol is '+'
        Memory at cell++
      (etcetera)
    }



    For example, the M-code executable is an interpreter.

    I don't even know where to begin...
    It WILL be difficult with my low-level C programming abilities and my not-so-long attention span.
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from madk »
    poke41, I challenge you to make a BrainF*ck interpreter in C. It shouldn't be too difficult for you.

    BrainF*ck

    I don't know what an interpreter is.
    (sorry for double post)
    Posted in: Computer Science and Technology
  • 0

    posted a message on So I wanted to learn C...
    Quote from Yourself »
    printf("Enter the ASCII operator (43 (adding), 45 (subtracting), 42 (multiplying), or 47 (dividing). ");


    Are you trying to make it harder than you need to?

    #include <stdio.h>
    
    int main(void)
    {
        int numb1;
       int numb2;
       int numb3;
       char oper;
       
       printf("Enter the first number. "\n);
       scanf("%d", &numb1);
       printf("Enter the second number. \n");
       scanf("%d", &numb2);
       printf("Enter the ASCII operator.\n ");
       scanf("%c", &oper);
       if (oper == '+')
       {
           numb3 = numb1 + numb2;
       }
        else if (oper == '-')
        {
            numb3 = numb1 - numb2;
       }
       else if (oper == '*')
       {
           numb3 = numb1 * numb2;
       }
       else if (oper == '/')
       {
           numb3 = numb1 / numb2;
       }
       else
       {
           printf("You entered a wrong ASCII char.\n");
       }
       printf("The result is: %d\n", numb3);
       return 0;
    }


    Now write an RPN evaluator in C.

    That wouldn't work on my computer.
    It would just give an empty result.
    I was tired of dealing with strings, so I looked up an ASCII table then I added the ASCII equivalents to + - * and /.
    Posted in: Computer Science and Technology
  • 0

    posted a message on Companion Cube or Headcrab?
    I'll stick with the cube.
    The cube is the best. :iapprove:
    Posted in: General Off Topic
  • 0

    posted a message on Beat Hazard
    Nice (if not short) review.
    This game sure looks interesting.
    Posted in: General Gaming
  • To post a comment, please or register a new account.