• ### Popular Now

• 15
• 15
• 11
• 9
• 10

#### Archived

This topic is now archived and is closed to further replies.

# Scrabble game: Player's input

This topic is 5113 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Argh.. this is getting frustrated. I fix one problem, another one appears. I am now having trouble on how to take in the user''s input in a game of Scrabble. I am a beginner in C programming language. Consider the first player already went, and placed down his word:
R A I D[/CODE]

This word was entered by asking the user for a proper location and the FULL WORD that he wants to make.

Now the next player''s turn.

How should I get his input? If I get in terms of location and letters, I can make a new word like this

[CODE]R A I D S[/CODE] (just adding the letter S at location (0,4) for this case)

or like this with location of (1,1) [CODE]R A I D
S [/CODE]

But what if the user wants a word like this:

[CODE]
D
R A I D
D
[/CODE]

then you are not just adding letters to preexisiting words but also adding letter(s) before and after. I looked into entering the whole word and the location but that won''t work, if you want to make multiple words using your letters.

I hope you guys understand what I am trying to say. Plz ask for any clarification as required.

regards,
Helix