xialiu1988 / lab03-WordGuessGame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lab03-WordGuessGame

This a game to guess a word by guessing letter by letter.

You can always start a new game after you finishe one and you can

manage the words in the file(add/delete)

Home page will be like this:

homepage

Now you can choose what you want to do, if you want to start a game, press "1"

game

Now you can type one letter to guess the word,if your guess letter exsits in the random word,it will show the letter above the underscore and you can see those, and on the right side, is your guess history telling you what you have been typed

game

But you can only type one letter a time, you can't type bunch letters at a time

game

After you figure it out what the word is, it will show you that word and ask you if you want to start a new game or not

game

If you choose start a new game, it will show you a new game,otherwise just go back to the home page

game

Now if you want to choose "2" on the home page,you will enter a new page called "Admin"

admin

You have 4 choices here: view all the words in the file, add new words to the file, delete some word you don't like and go back to home page

if you choose "1" to view all the words it will output all the words on the console

admin

After that you can press any key to go back to the admin page, now you can choose "2" to add a word to the file

admin

You can type a word and press enter

admin

But if you type something has number in it, it will tell you that is not a word and nothing should be added to the document

admin

If you type a space,still will not be added

admin

If you type some special characters , still nothin will be added to the file

admin

Now we go back to Admin and choose"3" to delete a word

delete

Result will be like this:

delete

And after this go back to Admin, and from Admin press "4" to go back to the home page.

Have Fun!

About

License:MIT License


Languages

Language:C# 100.0%