CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Krunchyman

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    5,735

    Re: Finding keywords in Cin and Cout

    I don't need something that complicated at the moment although it will be useful in the future. What I want right now is for the computer to search for strings found within user inputted cin...
  2. Replies
    5
    Views
    5,735

    Finding keywords in Cin and Cout

    Hello, I am writing an AI program similar to a chatterbot. I want it to be able to detect user inputted words. The user will input messages through 'cin' statements where they will then be...
  3. Re: System.Random is a type but is used like a variable

    Yes, but I don't want to have to specify integers such as conlist[con1] all the way through conlist[17]. If I did it that way, I'd have to specify each individual integer as well as the rng.Next...
  4. Re: System.Random is a type but is used like a variable

    I updated the code but the variables are still not uniquely random. For example, the code output is this:

    Press any key to start:
    kukuku
    rarara
    vovovo
    bibibi

    However, I want the letters to...
  5. System.Random is a type but is used like a variable

    I keep getting this error message with my program and I don't know how to fix it. Basically, I want the program to generate a set of random numbers using the specified ranges. However, I want 23...
  6. Replies
    4
    Views
    11,265

    Re: C# Random Methods

    Ok, thanks.
  7. Replies
    4
    Views
    11,265

    Re: C# Random Methods

    Thanks. Is there any way I can delay the call for a certain amount of milliseconds to get better randomness? The change would be unnecessary but I am curious to know how it could be done.
  8. Replies
    4
    Views
    11,265

    [RESOLVED] C# Random Methods

    I've been trying to write a C# program that generates random sentences. I've succeeded but I have one problem. For example, the random methods seem to only generate the same 1 random number even...
  9. Replies
    5
    Views
    5,400

    Re: Is this a good programming practice?

    I also do know a moderate amount of other programming languages such as Java and Basic as well as having a good understanding of programming concepts. Still, trying to absorb a lot of information...
  10. Replies
    5
    Views
    5,400

    Is this a good programming practice?

    So, I want to learn a moderate amount of 3 programming languages, C, C++ and C#. I already know a moderate amount of C# but I also want to learn C and C++, as well as observe how all 3 languages...
  11. Replies
    4
    Views
    8,822

    Re: Roguelike Console App Control Problems

    Bump.
  12. Replies
    4
    Views
    8,822

    Re: Roguelike Console App Control Problems

    I see the 4 read methods you speak of. I also am looking at the write methods (not cursor methods), would these be able to help me?
  13. Replies
    4
    Views
    8,822

    Roguelike Console App Control Problems

    I'm working on a Roguelike console app for C#. I have several key features working such as movement arithmetic but I am unable to coordinate things so my sprite moves around the screen properly.
    ...
  14. Re: How to make Console Applications Respond Without Prompt

    I added that to my code and it is working properly, thanks for your advice.
  15. How to make Console Applications Respond Without Prompt

    So, I want to create a roguelike video game in C# for a console application. The game will use procedurally generated environments that features ASCII characters and weapons created with WriteAt()...
  16. Re: Cannot implicitly convert type "string" to "int"

    Ok, so I finally got it to work, thanks to Jim's help. The code compiles without error and runs fine. Now, I just need to do some cleanup.

    Here's the completed code. I added a statement where if...
  17. Re: Cannot implicitly convert type "string" to "int"

    I know the goto label is bad. I'll remove it and add a subroutine but first I kind of want to work on the problem at hand before I do anything else.




    The code I'm using now is exactly the...
  18. Re: Cannot implicitly convert type "string" to "int"

    I entered in the TryParse statement and ran the program. Apparently, it didn't fix the problem. I got the same error. Here's the code.



    using System;
    using System.Collections.Generic;
    using...
  19. Re: Cannot implicitly convert type "string" to "int"

    So, it should look like this?



    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication1
  20. [Resolved] Cannot implicitly convert type "string" to "int"

    Since I'm still fairly new to C#, I decided to go back to the basics.

    Here I have a fairly simple problem with a basic number game I'm programming in C#. Basically, the game will generate a random...
  21. Re: Content Generating Algorithms in Video Games

    That makes sense. I should do it in that manner because when I look at pre-written code, my own iteration of it is often almost the same.
  22. Re: RpgTutorial.MainWorld does not contain a constructor that takes 1 arguments

    I believe I do. Thanks for your help.
  23. Content Generating Algorithms in Video Games

    Content generators in video games are getting more and more prominent and I want to make my own algorithmic content generator. I want it to procedurally generate a random environment that can be...
  24. Replies
    1
    Views
    1,152

    Content Generator Tutorials

    Content generators in video games are getting more and more prominent and I want to make my own. I want it to procedurally generate a random environment that can be continually explored.

    I'm...
  25. RpgTutorial.MainWorld does not contain a constructor that takes 1 arguments

    I'm having some issues with arguments, particularly this class. For this class, I get 4 errors that tell me " RpgTutorial does not contain a constructor that takes 1 argument.



    using System;...
Results 1 to 25 of 33
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured