Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- /* NameSpace: <HangmanGame_EthanArnold>
- Class: <ICS3U>
- Description: <Hangman Gamer>
- Author: <Author> Date: <24/2/2020>
- Notes: <Notes>
- */
- namespace HangmanGame_EthanArnold
- {
- class Program
- {
- static void Main(string[] args)
- {
- // Variables
- bool exit = false;
- double guesses = 6;
- string word = null;
- // If game running
- while (exit == false){
- // Instructions
- Console.Write("Instructions: First, someone must choose a 1-10 letter word(s). After this, a man will be drawn onto the console screen. Another user must try to guess the word/letters in the word, and they will have 6 chances to do so. Every time they fail, a new part of the scaffold will be drawn. After 6 attempts, the full hangman scaffold will be drawn, and then the man will be hung (game over)!");
- Console.ReadLine();
- // User Input
- // Word chooser
- Console.Write("Choose your word(s) to guess: ");
- word = Convert.ToString(Console.ReadLine());
- // Guesser
- // Score
- if (guesses <= 0){
- exit = true;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement