5 Replies - 18169 Views - Last Post: 29 March 2012 - 04:25 PM

#1 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2268
  • View blog
  • Posts: 9,482
  • Joined: 29-May 08

Challenge: Hangman (Easy - Intermediate)

Post icon  Posted 13 September 2011 - 07:37 PM

*
POPULAR

Code Challenge: Hangman

Your challenge if you choose to accept is to write a program in which the user and play a game of hangman.

Tasks
- Pick a random word or phrase
- Mask word ( - Letter, / Space)
- Ask the player for a letter, or guess.
-- If guess or letter is wrong then add a section to the hangman
-- If guess is correct player wins
-- If letter is correct, remask word account for letter
- Continue till player has won, or player is hung (10 guesses).

Restriction: Must use as minimum .net 3.5 Client Profile.

Is This A Good Question/Topic? 7
  • +

Replies To: Challenge: Hangman (Easy - Intermediate)

#2 fromTheSprawl  Icon User is offline

  • Monomania
  • member icon

Reputation: 513
  • View blog
  • Posts: 2,056
  • Joined: 28-December 10

Re: Challenge: Hangman (Easy - Intermediate)

Posted 14 September 2011 - 08:02 PM

Too bad no Java version of this challenge. :P
Was This Post Helpful? 0
  • +
  • -

#3 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Challenge: Hangman (Easy - Intermediate)

Posted 15 March 2012 - 07:24 AM

Okey. Here is a good question.
May i do this challenge in WPF? WPF uses VB.net as well :)
Was This Post Helpful? 0
  • +
  • -

#4 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2268
  • View blog
  • Posts: 9,482
  • Joined: 29-May 08

Re: Challenge: Hangman (Easy - Intermediate)

Posted 15 March 2012 - 12:03 PM

EndLessMind: Sure. Why not? since I didn't restrict the UI platform.
And also you're the first to take an punt at it, in something like 7months.
Was This Post Helpful? 0
  • +
  • -

#5 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Challenge: Hangman (Easy - Intermediate)

Posted 15 March 2012 - 05:36 PM

Great :)
I put something together now :)

It's fully working and has a couple of programming-related word in it(and some project-related) :)

I'm not sure how you would like me to post it, so i attached the source to this post :)
Attached File  Handman.zip (248.12K)
Number of downloads: 429
It's not beautifully and the code is a bit messy, but it works :)

Edit: just realized that i had named it "Handman" and not "Hangman" :P My bad :)

This post has been edited by EndLessMind: 17 March 2012 - 09:38 AM

Was This Post Helpful? 1
  • +
  • -

#6 Besseb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 29-March 12

Re: Challenge: Hangman (Easy - Intermediate)

Posted 29 March 2012 - 04:25 PM

Hi guys new here!

Just learning VB.NET and .NET in general and found this forum with some cool challenges to start learning with, entry is a little late but better late than never?

This is my first attempt at a completed program and I've never shown anyone my source before :unsure: I probably code like a spanner but I'll happily take any pointers!

Excuse my excessive commenting I do this because I have a memory like a fish and often forget what stuff does. :stuart:

Ciao!

Attached File(s)


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1