How To Code Hangman In C# | Tutorial For Beginners | Visual Studio 2022

Sdílet
Vložit
  • čas přidán 23. 01. 2022
  • Hey everyone!
    In today's video we discuss how to code a classic childhood game with the help of C#. This is a console app that allows users to guess a word and will update a stick figure drawing as time goes on. Everyone knows how hangman works, but does everyone know how to code it?
    Watch to find out! :)
    This project is available on GitHub at
    --------------------------------------------------------------------------------------
    github.com/ShaunHalverson/Csh...
    Add Me On Discord!
    --------------------------------------------------------------------------------------
    Username: Shaun(Hashtag)5626
    Software Engineering / Programming for beginners / variables types / computer science /compsci / coding for beginners / learn how to program / learn how to code / C# variables / python for beginners / coding tutorial / programming tutorial
    Thanks for watching! :)
    Want to see more? Click on this spicy link :D
    / @shaunhalverson
    Assets in the thumbnail were provided by artists on
    www.canva.com
    All art and copyright ownership belongs to the artists on Canva and is under the protection of the Canva pro membership.
    #programming #tutorial #learntocode

Komentáře • 29

  • @joemakogaming2491
    @joemakogaming2491 Před 5 měsíci +3

    Thank you was really good exercise. Am still in my early days of C# but am beginning to under it more and more all the time. Videos like this are really useful.

  • @arunabhrakshit
    @arunabhrakshit Před 2 lety +10

    the meme breaks are awesome! keep it up Shaun :)

    • @ShaunHalverson
      @ShaunHalverson  Před 2 lety +2

      Thank you! You are the first person to mention the meme breaks and I am so happy lol :) I am so happy someone likes them! They’re epic!

    • @arunabhrakshit
      @arunabhrakshit Před 2 lety +1

      @@ShaunHalverson your welcome i really like how the video is fast paced. other people just keep explaining unnecessary stuff.

    • @ShaunHalverson
      @ShaunHalverson  Před 2 lety +1

      @@arunabhrakshit that’s good! I try to explain what’s necessary and cut out the jibberish. Thank you for the kind words!

  • @Kabelo2002
    @Kabelo2002 Před rokem

    your videos are so good man

  • @Ronnyxxedit
    @Ronnyxxedit Před 2 měsíci

    Thank you so much ❤

  • @myname33
    @myname33 Před 11 měsíci

    hello when i start a new projekt i dont have that code in the begining idk how to get it i need a little help

  • @11rips17
    @11rips17 Před rokem

    Hello Shaun! Can you help me?
    When I guess a letter, it counts as 3 guesses, why is this?

  • @hempoyofficial
    @hempoyofficial Před rokem

    We demand to make it with a gui. Thank you for this.

  • @trongattuma3546
    @trongattuma3546 Před 2 lety +5

    Please make it with a GUI! Great content, thank you!

    • @ShaunHalverson
      @ShaunHalverson  Před 2 lety +1

      I would love to soon! Thank you so much for the kind words :)

  • @schalkdrizzy
    @schalkdrizzy Před 2 lety +1

    Hi Shuan, thanks for the video. However, my code isn't working. experiencing issues with the following
    Operator '!=' cannot be applied to operands of type 'list' and 'int'
    line 122 isn't working.
    and then,
    only assignment, call, increment, decrement, await, and new object expressions can be used as a statement.
    line 120 & 137
    if you can help me out I'd really appreciate it :D

    • @AznKEvon
      @AznKEvon Před rokem +1

      You can’t compare between a letter/char and a number/int

  • @abdalrahmanmoh.elbanna3998
    @abdalrahmanmoh.elbanna3998 Před 10 měsíci

    there is an error the printWord function

  • @andreas789
    @andreas789 Před 2 lety +2

    for me it prints everything like 5 times but i cant see a problem in my Code...

  • @ChronicHenry
    @ChronicHenry Před rokem

    if - / if (letterGuessed == randomWord[i]) { right = true; }/ - is not on the same line as - / for (int i = 0; i < randomWord.Length; i++) \

  • @random_precision_software

    Would you do some unity videos, that's uses C#.

  • @blertonrexhepi31
    @blertonrexhepi31 Před 2 lety

    idk why my code isn't working

    • @ShaunHalverson
      @ShaunHalverson  Před 2 lety

      Which part of it? What error are you getting?

    • @blertonrexhepi31
      @blertonrexhepi31 Před 2 lety +2

      nothing but a ";" was missing 🤦‍♂️🤦‍♂️

    • @ShaunHalverson
      @ShaunHalverson  Před 2 lety +1

      @@blertonrexhepi31 hahahaha! Happens to the best of us :D

  • @syed9147
    @syed9147 Před 2 lety +1

    Nice dude can you please teach me C++

  • @longb1913
    @longb1913 Před rokem +1

    Y are u using this old style c# why dont u do it with top level statements so less confusing for beginners

  • @AlexBall03
    @AlexBall03 Před rokem +1

    Hello, this tutorial was awesome!
    But, I did notice an issue...
    if you have a word that contains two of the same letters (ex. hello), the program won't let me input the second letter in the word.
    I was wondering if you had the same issue, and if you had an idea on how I could adjust it so that it would allow me to have two of the same letters in the word, but no more?
    Thank you!
    @ShaunHalverson