Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. /* NameSpace: <HangmanGame_EthanArnold>
  7. Class: <ICS3U>
  8. Description: <Hangman Gamer>
  9. Author: <Author> Date: <24/2/2020>
  10. Notes: <Notes>
  11. */
  12.  
  13. namespace HangmanGame_EthanArnold
  14. {
  15. class Program
  16. {
  17. static void Main(string[] args)
  18. {
  19. // Variables
  20. bool exit = false;
  21. double guesses = 6;
  22. string word = null;
  23.  
  24.  
  25. // If game running
  26. while (exit == false){
  27. // Instructions
  28. 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)!");
  29. Console.ReadLine();
  30. // User Input
  31.  
  32. // Word chooser
  33. Console.Write("Choose your word(s) to guess: ");
  34. word = Convert.ToString(Console.ReadLine());
  35.  
  36. // Guesser
  37.  
  38. // Score
  39. if (guesses <= 0){
  40. exit = true;
  41. }
  42. }
  43.  
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement