Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: How do I get a list of words for a Scrabble-game

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    24
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default How do I get a list of words for a Scrabble-game

    If I wanted to make a game like Scrabble in Java, how could I include all the words?
    Is there a way to import them or so? How do I do that? Is this even possible?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How do I get a list of words for a Scrabble-game

    You could read them from a file into some kind of collection in the program. The kind of collection would depend on how the code needed to access its contents.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    24
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: How do I get a list of words for a Scrabble-game

    Is a string array with 500-1000 words read out of a file possible? Where can I get such a file.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How do I get a list of words for a Scrabble-game

    The number of words would be related to the size of your computer's memory. 10,000 words at 20 bytes each would take approximately 10,000 * 20 bytes.
    Ask a Search engine.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 3
    Last Post: October 5th, 2013, 09:14 AM
  2. [SOLVED] Game problem: java.lang.IndexOutOfBoundsException with array list
    By The_pizzaguy in forum What's Wrong With My Code?
    Replies: 4
    Last Post: August 23rd, 2013, 11:30 AM
  3. Replies: 12
    Last Post: March 17th, 2013, 01:38 AM
  4. Reading characters from a simple output to list words.
    By adwodon in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: July 16th, 2012, 03:34 PM
  5. Scrabble GUI
    By davidpi in forum AWT / Java Swing
    Replies: 6
    Last Post: April 26th, 2011, 08:53 AM