Closed Thread
Results 1 to 9 of 9

Thread: Guessing game

  1. #1
    No doubt is offline Newbie
    Join Date
    Feb 2010
    Location
    South africa
    Posts
    1
    Rep Power
    0

    Guessing game

    Can someone send me the guesing game gode in c sharp.please !

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: Guessing game

    We aren't just going to give all the code for your project especially since it sounds like homework without a decent effort or your part.

    So what code do you have so far?
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  4. #3
    cdg10620's Avatar
    cdg10620 is offline Programming Expert
    Join Date
    Jun 2009
    Location
    Texas
    Posts
    387
    Blog Entries
    3
    Rep Power
    12

    Re: Guessing game

    I saw this post and couldn't help myself. Sorry to be a little mean but seriously. lol

    Code:
    While( !User.hasAnswer )
    {
         User.askQuestion();
    
         if( User.postCode && User.putForthEffort )
         {
              CodeCallMembers.Help();
              User.hasAnswer = true;
         }
         else
         {
              CodeCallMembers.Laugh();
         }
    }
    -CDG10620
    Software Developer

  5. #4
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: Guessing game

    I saw this post and couldn't help myself. Sorry to be a little mean but seriously. lol

    Code:
      
         While( !User.hasAnswer )
    {
         User.askQuestion();
    
         if( User.postCode && User.putForthEffort )
         {
              CodeCallMembers.Help();
              User.hasAnswer = true;
         }
         else
         {
              CodeCallMembers.Laugh();
         }
    }
    that's funny!!!
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  6. #5
    cdg10620's Avatar
    cdg10620 is offline Programming Expert
    Join Date
    Jun 2009
    Location
    Texas
    Posts
    387
    Blog Entries
    3
    Rep Power
    12

    Re: Guessing game

    My boss told me the other day that all IT guys are arrogant in some form or fashion. After posting this I see what he meant. lol
    -CDG10620
    Software Developer

  7. #6
    lazar is offline Newbie
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Re: Guessing game

    I fully agree. Post some code if you want some help. We aren't here to do your work FOR you.

  8. #7
    Join Date
    Mar 2010
    Location
    Indiana
    Posts
    17
    Rep Power
    0

    Re: Guessing game

    Quote Originally Posted by cdg10620 View Post
    I saw this post and couldn't help myself. Sorry to be a little mean but seriously. lol

    Code:
    While( !User.hasAnswer )
    {
         User.askQuestion();
    
         if( User.postCode && User.putForthEffort )
         {
              CodeCallMembers.Help();
              User.hasAnswer = true;
         }
         else
         {
              CodeCallMembers.Laugh();
         }
    }
    Thats awesome, i'm saving that.

    as for No doubt here try this:
    HTML Code:
    http://www.lmgtfy.com/?q=c+sharp+guessing+game

  9. #8
    tossy's Avatar
    tossy is offline Programmer
    Join Date
    Aug 2008
    Posts
    199
    Rep Power
    14

    Re: Guessing game

    // Number Guessing Game
    // Applies the srand() function and loops.

    #include <iostream>
    #include <cstdlib>
    #include <ctime>

    using namespace std;
    Microsoft: "You've got questions. We've got dancing paperclips

  10. #9
    lor's Avatar
    lor
    lor is offline Programming Goddess
    Join Date
    Jun 2009
    Posts
    895
    Blog Entries
    4
    Rep Power
    16

    Re: Guessing game

    Quote Originally Posted by tossy View Post
    // Number Guessing Game
    // Applies the srand() function and loops.

    #include <iostream>
    #include <cstdlib>
    #include <ctime>

    using namespace std;
    LOL irl. You must have worked your butt off!@... By sitting down and being lazy, maybe.
    Search for C# tutorials on Google and search while loops then return to your code, look through your resources which you surely should have if this is a school assessment (notes, hand outs?) and use logic! Programming is all about using logic to solve your puzzles, asking another member to write the code for you will gain you nothing except disrespect. Especially if it is a school assessment and you're trying to find an easy way out by cheating.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 13
    Last Post: 09-01-2010, 01:34 PM
  2. Number Guessing Game, NEED HELP!!!!
    By Clawbo in forum Visual Basic Programming
    Replies: 4
    Last Post: 05-02-2009, 09:34 AM
  3. Random Number Guessing Game
    By sunyboy in forum Visual Basic Programming
    Replies: 3
    Last Post: 03-07-2009, 03:16 PM
  4. just a simple guessing game
    By deryni in forum C and C++
    Replies: 2
    Last Post: 12-13-2008, 03:57 PM
  5. number guessing game
    By ligerz785 in forum C and C++
    Replies: 8
    Last Post: 04-08-2008, 01:43 PM

Tags for this Thread

Bookmarks

Posting Permissions

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