0

Hello everyone,

I'm not a very advanced programmer and here is my problem:
I'm trying to write a hangman game and I want to use online dictionaries as database.


I created a windows form application to do that. Is there a better option to achieve my aim?

I could find some pieces of codes on the internet. It just helps me to open source code of webpage.

Here is the codes I found:

string url = " ";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);                request.Method = "GET";
WebResponse wrs = request.GetResponse();
StreamReader reader = new StreamReader(wrs.GetResponseStream(), Encoding.UTF8);
string result = reader.ReadToEnd();

Can you help me?

Thanks.

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by makman99
0

I don't exactly get what you are trying to ask. The only question I see is whether windows form application is a good idea to make a hang man game. The other option is a console application or WPF application. WPF is more graphical, and but console could also get the job done.

Are you also asking about how to get words from the internet?

0

Sorry for not being clear.

The thing what I am trying to ask is: Is it possible to take words from internet for hangman game or not by using c#?

I can basicly use a txt file, and read words from it and randomly ask to player, without internet. However, I want to ask player different words in every game. That's why I want to create my txt file by taking words from internet whenever game is run. That's why I need to take words for the game from an internet webpage such as dictionary or somewhere else.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.