Welcome Guest.   Make a donation to an author on the site October 31, 2014, 07:56:54 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: Prev 1 2 3 [4] 5 6 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: NANY 2012 Release: Kyrathaba's Hangman  (Read 39803 times)
worstje
Honorary Member
**
Posts: 555



The Gent with the White Hat

View Profile Give some DonationCredits to this forum member
« Reply #75 on: July 10, 2011, 11:04:41 AM »

I haven't played, but that sounds like the wrong solution to me. How is someone going to type the altered apostrophe? (That 'directed' apostrophe has its roots in Word, and its automatic quote function.) Keyboards don't have that character, so unless you use some fancy default Windows logic that can convert it to a normal apostrophe, (or some code of your own,) you haven't fixed the actual problem of not being able to guess the proper character yet.

Since you seem to aim for the english market, I'd recommend a plain latin-1 encoding to store your guess texts. You probably use UTF-8 right now, or some other Unicode variety. Even those have a few characters you may not be able to type, but there's far less chance on this sort of mishaps that way; Unicode has tons of look-a-like characters.
« Last Edit: July 11, 2011, 12:11:51 PM by kyrathaba » Logged
thancock20
Supporting Member
**
Posts: 35

View Profile Give some DonationCredits to this forum member
« Reply #76 on: July 10, 2011, 12:07:39 PM »

Ooh, an update while I slept.  Awesome.  Thmbsup

worstje, I think you missed this part:

Apostrophes are supposed to be among the punctuation marks that are automatically shown in plain-text when a new puzzle is presented (i.e., you  shouldn't have to guess them).
Logged
worstje
Honorary Member
**
Posts: 555



The Gent with the White Hat

View Profile Give some DonationCredits to this forum member
« Reply #77 on: July 10, 2011, 12:57:34 PM »

Yup, I did indeed miss that. smiley However, now that I know that, I am of the opinion Kyrathaba's going about it the wrong way: rather than listing the characters that should be displayed automatically, I would list the characters that are guessable. That way, accented characters, hyphens, middle dots, double-arrow-quote-thingies, etc - they'd all be displayed. The characters one would like to guess are usually as simple as a-z and proably 0-9.
Logged
thancock20
Supporting Member
**
Posts: 35

View Profile Give some DonationCredits to this forum member
« Reply #78 on: July 10, 2011, 01:36:39 PM »

Oh wow! I just had one heck of a lucky game. Several of the puzzles I could actually remember from earlier games, because I've been playing so much.
It probably doesn't hurt that I grew up watching "Wheel of Fortune" every night either.
Or that I can type around 75 WPM. (Some of those puzzles got finished with very little time left on the clock).

The puzzle that finally did me in was the occupation "Doctor".

Anyway, I can't actually imagine doing better any time soon. Though, I won't give up trying.
Logged
kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #79 on: July 10, 2011, 02:39:58 PM »

Quote
The characters one would like to guess are usually as simple as a-z and proably 0-9

And those are the only ones players have to guess in "Kyrathaba's Hangman", unless there's a bug left in the code somewhere.

Quote
Oh wow! I just had one heck of a lucky game.

Congratulations!  I just had a look at the scoreboard, only to see that your new high-score, and by far the highest on the board, is 453110.  Wow!  That will give hamradio some competition, though I daresay ham is up to the challenge smiley
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #80 on: July 11, 2011, 11:21:28 AM »

Tonight I will save the phrases in Latin vs UTF8, and will do an update.
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #81 on: July 11, 2011, 01:44:18 PM »

Welcome to djwillie, our 46th competitor to join the NANY 2012 Hangman Highscore Contest.

Only a small fraction of the competitors appear to be DonationCoder members. Remember, only members can win prize money.
« Last Edit: July 11, 2011, 06:12:07 PM by kyrathaba » Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

steeladept
Supporting Member
**
Posts: 1,056



Fettucini alfredo is macaroni & cheese for adults

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #82 on: July 12, 2011, 01:42:23 AM »

Finally downloaded and started to play my first game and got an error right off the bat...

Don't know if it will help, but this is the error details (error screenshot attached at bottom):


EDIT - I continued and after the second game ended the third game came up with the same error (perhaps it is the particular puzzle chosen?).  Anyway, I got the error and when I hit continue, it let me try continue with the game, but it didn't clear the old solution to present the new puzzle.  However, when I tried the answer for the old puzzle, it failed, so it at least loaded a new one, just isn't displaying it. Wrong - just noticed it is the old puzzle.  All the letters are already gone, but it is asking for the new ones.  Enter a blank and it is a bad guess just like a wrong letter.


* Screenshot - 7_12_2011 , 2_35_25 AM.png (8.35 KB, 444x163 - viewed 130 times.)
« Last Edit: July 12, 2011, 01:51:16 AM by steeladept » Logged
steeladept
Supporting Member
**
Posts: 1,056



Fettucini alfredo is macaroni & cheese for adults

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #83 on: July 12, 2011, 02:08:18 AM »

Another bug I am finding is not all letters show from puzzle to puzzle.  They are not selected, but they are not listed if you are a mouse user.  And if you type the letter in the box (or highlight the carrot and type it in) then the letter works and shows in the right places, but the letter shows twice in the guess box.  Not an issue in processing (it works right), just an observation.

Another observation - especially during timed games - keyboard input is MUCH Better! tongue

Perhaps in a future revision you can consider tracking if input was via mouse or keyboard to differentiate high scores?  I am not a mouse person in general, but when checking stuff out like this I find that is where most things break (at least in my programs). 
« Last Edit: July 12, 2011, 02:31:15 AM by steeladept » Logged
kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #84 on: July 12, 2011, 07:19:54 AM »

@steeladept:

Thanks for downloading and playing!  I'm sorry that it messed up for you, and thank you so much for the bug report!

Quote
the third game came up with the same error (perhaps it is the particular puzzle chosen?).


I am thinking that, because the game works without this error for many puzzles, it must be that some particularly long puzzles are causing this.  I've changed the maximum phrase length from 300 to 400, and I'm adding some error-catching to suspect methods:

[copy or print]
public const int MaxPhraseLength = 400;

[copy or print]
           } catch (Exception loadHangFileException) {
                MessageBox.Show("Error in method loadHangmanFile()", loadHangFileException.Message);
            }

[copy or print]
           } catch (Exception instantAndRunEx) {
                MessageBox.Show("Error in method instantiateAndRunGame()", instantAndRunEx.Message);
            }


Quote
but the letter shows twice in the guess box

I've updated the guess-handling code to check and see if the correct or wrong guess is already shown (this should prevent duplicates; let me know if any continue to happen):

[copy or print]
       private void addWrongGuess(string wrongGuess) {
            if (!WrongGuesses.Contains(wrongGuess)) {
                _wrongGuesses += wrongGuess;
            }
        }

        private void addUsedGuess(string usedGuess) {
            if (!UsedGuesses.Contains(usedGuess)) {
                _usedGuesses += usedGuess;
            }
        }


Quote
Another bug I am finding is not all letters show from puzzle to puzzle.  They are not selected, but they are not listed if you are a mouse user.

I think this is a control-repainting issue.  When this happens, try scrolling the vertical scrollbar the entire extent of the combobox and see if the letters don't seem to magically reappear.  I'm working on a fix for this.

Quote
Perhaps in a future revision you can consider tracking if input was via mouse or keyboard to differentiate high scores?


I've noted the suggestion for a possible future version, and thanks!

 
Quote
I am not a mouse person in general, but when checking stuff out like this I find that is where most things break (at least in my programs).

+1.


Summary: hopefully, the 100-character increase in maxPhraseLength will fix the most glaring error.  However, I've added error-handlers to a couple of highly suspect methods, which will pop up a much more info-rich messagebox and help me track down the bug, if it persists.  Hopefully, the extra checking I've added to the missed versus correct guesses will solve that annoying bug too.  Thanks again for taking the time to post, steeladept, and please let me know the results if you update to v1.0.4.1.  You can update to the new version from within the program: "About"->"Update".

« Last Edit: July 12, 2011, 07:30:11 AM by kyrathaba » Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

steeladept
Supporting Member
**
Posts: 1,056



Fettucini alfredo is macaroni & cheese for adults

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #85 on: July 12, 2011, 09:11:56 PM »

Eh, I'm not worried about it messing up my game - I am not a word game kind of person (as in I totally suck at most all of them) undecided  I am just looking where I always run into troubles with my own programs and found several for you to check out. Thmbsup
Logged
kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #86 on: July 12, 2011, 09:21:01 PM »

Again, I really appreciate your feedback.  Makes all the difference!  thumbs up
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #87 on: July 13, 2011, 02:27:39 PM »

Everyone welcome podracer, our 51st Hangman contestant!  I've sent him/her an email, inviting them to visit our forum.
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #88 on: July 14, 2011, 07:08:21 AM »

Watch out, thancock20!

It looks like Aquanoid poses a real threat to your reign:

Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

hamradio
Charter Honorary Member
***
Posts: 588



Amateur Radio Guy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #89 on: July 14, 2011, 12:52:32 PM »

Whew now to take a good break from it...
Logged

Carroll - HamRadioUSA
kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #90 on: July 14, 2011, 02:31:46 PM »

Ooh! 

Hey thancock20, are you gonna let that stand!?  Check the online scoreboard...
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #91 on: July 14, 2011, 08:07:17 PM »

This is getting ugly, folks!  It's a dead-heat!

Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #92 on: July 17, 2011, 09:16:18 AM »

There are just two weeks remaining until the first high-score prize is given out!  As of this posting, hamradio has the lead, trailed closely by thancock20, benubird, and Aquanoid!
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

thancock20
Supporting Member
**
Posts: 35

View Profile Give some DonationCredits to this forum member
« Reply #93 on: July 21, 2011, 08:02:12 PM »

It's the return of the dreaded little box (for the degree symbol this time):



It didn't actually cost me the game this time though, because I died trying to guess the correct numbers.  Those puzzles with numbers in them are a definite weakness of mine.
Logged
kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #94 on: July 21, 2011, 09:13:43 PM »

Thank you for the bug-report.  The bug has been squashed: version 1.0.4.2 is the fix.  You may use "About"->"Update" from within the program to update to the fixed version.
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #95 on: July 21, 2011, 11:25:13 PM »

I don't expect any more bugs related to apostrophes or rare symbols (fingers crossed).
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #96 on: July 26, 2011, 09:44:05 PM »

There is less than one week until the first montly high-score prize is awarded!  Right now, hamradio is in the lead to receive it.
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #97 on: July 29, 2011, 07:34:15 AM »

Just two days remaining before the first $5 of DonationCredits is disbursed to the high-scorer.  That is, at the time of this post, hamradio!!
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #98 on: July 30, 2011, 03:12:38 PM »

I'll award the DonationCredits when this count falls below 129 days...
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

kyrathaba
N.A.N.Y. Organizer
Moderator
*****
Posts: 3,014



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #99 on: July 31, 2011, 02:29:17 PM »

Congratulations to hamradio for winning the July high-scorer spot.  Your DonationCredits have been delivered cheesy
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

Pages: Prev 1 2 3 [4] 5 6 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.063s | Server load: 0.09 ]