Method Help Please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Darkman2008
    New Member
    • Mar 2008
    • 1

    Method Help Please

    Hello

    This is an extension task for my current course where I have to create a Word guessing game. There are 4 classes.(List, game, word and InputRead)

    The List class holds a number of probable target words, which are held in an array. It also contains a method, which returns a single word at random. THIS CLASS IS DONE.

    The Game class controls playing the game. It has a run() method to start the game. It should also show the required menus and keep a record of the player scores. (Class not completed, still in progress)

    The word class has a number of Letter objects in an ArrayList or array (have to decide) The Letter objects have to store individual values from the current target word with a Boolean value, which shows if the player has guessed this letter so far. (Class not completed)

    Question:

    The question involves the WORD class. I am having trouble with creating the necessary code, which “stores individual values from the current target word with a Boolean value, which shows if the player has guessed this letter so far”

    Info:
    I am using BlueJ V 2.1.2
    Java Version: 1.5.0_09
    Windows XP S2
    Language: Java

    So can anyone help me please?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Maybe you can have a look at this thread and pay special attention where I whine
    about regular expressions.

    kind regards,

    Jos

    Comment

    Working...