Search:

Type: Posts; User: Nalif

Search: Search took 0.01 seconds.

  1. That's what I was thinking. It'd be nice if...

    That's what I was thinking.

    It'd be nice if Zork or some other reputable text adventure were made open source, but then I'm sure a lot of the programming used in those games were archaic.
  2. Creating a map/cordinate system for a text game

    I'm trying to come up with a coordinate/map system for a text game I'm working on that's easy to work with and understand. Here's what I've come up with so far, but it seems overly complicated:
    ...
  3. Replies
    16
    Views
    7,918

    Thank you. And I'm in the process of...

    Thank you.


    And I'm in the process of realizing how to implement it. Once I find the time to open the source code up again ( I have a very busy schedule right now ) I'll see if I can't understand...
  4. Replies
    16
    Views
    7,918

    Let me restate. I do not understand scanf....

    Let me restate. I do not understand scanf. However, I understand it much more than any other comparable function. I can't claim to fully understand any function I've ever used, because I've never...
  5. Replies
    16
    Views
    7,918

    Post three may tell me not to use scanf, but why...

    Post three may tell me not to use scanf, but why would I use code when I have no idea what it does? I posted here asking why my code didn't work as expected, not how to completely rewrite it just...
  6. Replies
    16
    Views
    7,918

    I've fixed the program. I'm not completey sure,...

    I've fixed the program. I'm not completey sure, but I believe my problem was using scanf to read in the input expecting it to be a %c - I thought this stood for character, but apparently I needed to...
  7. Replies
    16
    Views
    7,918

    No, I only typed y or n. The program still...

    No, I only typed y or n. The program still breaks, so I don't think making the changes you've suggested would fix the problem. I'll give it a try when I get home, but that's not what broke the...
  8. Replies
    16
    Views
    7,918

    cont is the variable that holds the input for one...

    cont is the variable that holds the input for one of the scanf functions. I used an if statement to check to see what cont was equal to after the scan - if it was equal to n, it set the continuation...
  9. Replies
    16
    Views
    7,918

    Random guessing game

    I'm trying to program a simple game where the user has to guess a number between 1 and 1000. The game works for the most part, however it always displays the "You are correct! Play again? (y or n)"...
  10. Replies
    3
    Views
    1,954

    I guess creating custom functions are above me as...

    I guess creating custom functions are above me as of yet, and I'd better just stay away from them completely. I don't understand them, and understand even less the examples you posted. I'll just keep...
  11. Replies
    3
    Views
    1,954

    Defining a custom function

    I'm trying to learn how to clean up my code, and I think the solution will be to use custom functions. My current project is a text-based adventure game. Right now I'm trying to get the room system...
  12. Replies
    6
    Views
    6,826

    Aha! Now I understand. I didn't realize what the...

    Aha! Now I understand. I didn't realize what the array[0] was doing inside of the switch function - now I realize that it's telling the switch function to make all of it's call comparisons to the...
  13. Replies
    6
    Views
    6,826

    But using the case structure like that still...

    But using the case structure like that still requires the action be called by a single character ( a, b, etc) as opposed to a string, correct? Unless I've overlooked something.

    I just did a quick...
  14. Replies
    6
    Views
    6,826

    Creating a menu that reads input via an array?

    Currently I'm working on a text based adventure - I'm not doing this for class or anything, but just because it seemed like a fun idea to try. I'm new to programming, but I've been reading far ahead...
Results 1 to 14 of 14