Thread: Alphabet Soup

  1. #1
    Registered User
    Join Date
    Mar 2014
    Posts
    4

    Alphabet Soup

    Hey guys, I'm tryin' to make an alphabet soup on C programming, and I'm stuck with a problem.
    I need to make a function able to automatically find all the words that exist in alphabet soup, any helps?

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Yes - be careful not to spill any soup on your keyboard. You need a USB-to-bowl converter to receive the soup data into your program.

    Kidding aside, can you be more descriptive of the rules? I don't know of any rules for "alphabet soup". Do you want to make words with any of the given letters, or only adjacent/connected letters, or only letters on your spoon? Can the same letter be used more than once in a single word, or in multiple words for that matter?

    I'm assuming you attempted this before asking for help - you should provide any code you've tried along with specific questions on where exactly you're having trouble.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    What is an "alphabet soup" in this context? In other words, you should describe in greater detail what you are trying to do.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Mar 2014
    Posts
    4
    An alphabet soup is simply a grid of letters where you want pamines. Normally, this demand is made in three directions: horizontal, vertical and diagonal. But, in this case, we can also use the horse step (like in chess), and the serpent step.

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Luis Ribeiro
    An alphabet soup is simply a grid of letters where you want pamines.
    Okay, I understand "grid of letters". However, I have never come across the word "pamines", and in fact a quick search through both an online dictionary and the dictionary on my shelf reveals that there is no such word commonly used in the English language. I guess that this is either a special term used in this "alphabet soup" game, or is untranslated from some other language that you use. Either way, you need to explain it.

    Quote Originally Posted by Luis Ribeiro
    Normally, this demand is made in three directions: horizontal, vertical and diagonal.
    Right. If I understood what are "pamines", I presumably would understand this, so that's fine.

    Quote Originally Posted by Luis Ribeiro
    But, in this case, we can also use the horse step (like in chess), and the serpent step.
    It so happens that I am a chessplayer, so I have an idea what "the horse step (like in chess)" might mean. However, you need to explain it. This explanation is not just for the benefit of the reader, but for yourself as it will give you a clearer idea of what you are trying to do. Oh, and I have no idea what is the "serpent step".

    "The most important single aspect of software development is to be clear about what you are trying to build." - Bjarne Stroustrup
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. realloc alphabet
    By ddimit02 in forum C Programming
    Replies: 2
    Last Post: 06-30-2011, 12:54 AM
  2. MISO Soup: Multiple Clients and one Server
    By doubleanti in forum Networking/Device Communication
    Replies: 2
    Last Post: 07-24-2007, 02:29 AM
  3. Alphabet not changing
    By swgh in forum C Programming
    Replies: 5
    Last Post: 05-25-2007, 03:32 PM
  4. GLSL: polygon soup on nVidia cards.
    By psychopath in forum Game Programming
    Replies: 9
    Last Post: 04-23-2006, 07:08 AM
  5. too many cooks spoil the soup?
    By cozman in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-10-2001, 10:06 PM

Tags for this Thread