Jump to content

C# Challenge [Easy]

Nater
5a9949ef579084664ba25196c3c86c51.gif

 

PMing MisterWhite gave me the idea to make some challenges, more specifically a hangman challenge. 

 

Things to do:

        - Fix the Errors (4) (It says 5, but I forgot one)

        - Add the Reset Game Option

        - Display amount of guesses left

Bonus Points:

        - Add a "Used" Character Pool

        - Pull the words off of a pastebin

 

Notes:

       - I did most of the work for you

       - You may do the second two tasks in anyway you wish.

       - My comments are awful, terrible grammar and don't make too much sense, but I hope you will understand them. (my professor tells me this)

       - My methods might not always be the best

 

If you get stuck just ask for help.

 


Link to comment
Share on other sites

Link to post
Share on other sites

Help me do it all I only know Java

 

Do you at least have visual studio?

 

C# is very very close to Java, you should be able to do this, I might jump into netbeans though and make a Java Version.

Link to comment
Share on other sites

Link to post
Share on other sites

Sounds like"finish my homework" kind of challenge. :D
/jk

Laptop: Acer V3-772G  CPU: i5 4200M GPU: GT 750M SSD: Crucial MX100 256GB
DesktopCPU: R7 1700x GPU: RTX 2080 SSDSamsung 860 Evo 1TB 

Link to comment
Share on other sites

Link to post
Share on other sites

Sounds like"finish my homework" kind of challenge. :D

/jk

 

I wish I was taking classes right now, and my campus doesn't even teach C#.

Link to comment
Share on other sites

Link to post
Share on other sites

I haven`t done all of the tasks yet, but the auto-generated code in the Form1.Designer.cs kinda pissed me off, so I improved it a bit. The parts that I improved are commented out.

http://pastebin.com/XrUUXd6i

GPU: Gigabyte GTX 970 G1 Gaming CPU: i5-4570 RAM: 2x4gb Crucial Ballistix Sport 1600Mhz Motherboard: ASRock Z87 Extreme3 PSU: EVGA GS 650 CPU cooler: Be quiet! Shadow Rock 2 Case: Define R5 Storage: Crucial MX100 512GB
Link to comment
Share on other sites

Link to post
Share on other sites

I haven`t done all of the tasks yet, but the auto-generated code in the Form1.Designer.cs kinda pissed me off, so I improved it a bit. The parts that I improved are commented out.

http://pastebin.com/XrUUXd6i

 

 

You're honestly the only person I've ever met that cosmetically edits the Designer.

Link to comment
Share on other sites

Link to post
Share on other sites

You're honestly the only person I've ever met that cosmetically edits the Designer.

I just don`t like when lots of variables are used in a place where an array would work just as well while taking up less lines :P.

GPU: Gigabyte GTX 970 G1 Gaming CPU: i5-4570 RAM: 2x4gb Crucial Ballistix Sport 1600Mhz Motherboard: ASRock Z87 Extreme3 PSU: EVGA GS 650 CPU cooler: Be quiet! Shadow Rock 2 Case: Define R5 Storage: Crucial MX100 512GB
Link to comment
Share on other sites

Link to post
Share on other sites

Those are pretty easy honestly.

I mainly use C++ and I don't have Visual Studio installed or another C# IDE, so I don't think I'll bother with it D:

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to comment
Share on other sites

Link to post
Share on other sites

I have done everything other than the bonus tasks now: https://www.mediafire.com/?v5rbr4kplmm7wct

 

And I wouldn't recommend following in their footsteps.

It works fine if you are ok with only being able to edit the Designer manually.

GPU: Gigabyte GTX 970 G1 Gaming CPU: i5-4570 RAM: 2x4gb Crucial Ballistix Sport 1600Mhz Motherboard: ASRock Z87 Extreme3 PSU: EVGA GS 650 CPU cooler: Be quiet! Shadow Rock 2 Case: Define R5 Storage: Crucial MX100 512GB
Link to comment
Share on other sites

Link to post
Share on other sites

I have done everything other than the bonus tasks now: https://www.mediafire.com/?v5rbr4kplmm7wct

 

It works fine if you are ok with only being able to edit the Designer manually.

 

Downloaded it, tried to open it, realized I was on my laptop.

 

I'm sure you did everything with flying colors, not a very difficult challenge, I think I did too much, but my main goal was to teach newer people how to use the sender object, which I wish someone would have taught me (literally learned it after 5 years) and it's such a life changer.

Link to comment
Share on other sites

Link to post
Share on other sites

Downloaded it, tried to open it, realized I was on my laptop.

 

I'm sure you did everything with flying colors, not a very difficult challenge, I think I did too much, but my main goal was to teach newer people how to use the sender object, which I wish someone would have taught me (literally learned it after 5 years) and it's such a life changer.

I didn`t even use that object. The code where you used it is still there, but I didn`t change anything about it.

GPU: Gigabyte GTX 970 G1 Gaming CPU: i5-4570 RAM: 2x4gb Crucial Ballistix Sport 1600Mhz Motherboard: ASRock Z87 Extreme3 PSU: EVGA GS 650 CPU cooler: Be quiet! Shadow Rock 2 Case: Define R5 Storage: Crucial MX100 512GB
Link to comment
Share on other sites

Link to post
Share on other sites

I didn`t even use that object. The code where you used it is still there, but I didn`t change anything about it.

 

Yeah that's what I mean, I did a bit too much.

Link to comment
Share on other sites

Link to post
Share on other sites

These additions are pretty easy, but I might give it a try just to get used to looking at, understanding and working with other peoples code.

 

Edit: Just noticed the easy tag in the title :D

Edited by prolemur
Link to comment
Share on other sites

Link to post
Share on other sites

Child's play. Oh wait... target audience?  :lol: I jest...

 

It simply wouldn't be fair for me to partake at this level  ^_^ 

The single biggest problem in communication is the illusion that it has taken place.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×