Another update! Runer made an awesome new AxeTokens file, this is what it looks like:
I've included it in the download as well as addressed a couple of his suggestions: - Removed the [expr(] - Fixed alt-strings, I hope - Prompts if you try to open an ASM program - Site tab hyperlink in group pane, as well as a tooltip:
- Added commentString and directiveString to XML definition, defaults to "//" and "#", respectively. In AxeTokens.xml I set it to "//" and "@".
By the way, this is now included (credited to you) in the main download for TokenIDE: http://merthsoft.com/Tokens.zip If you make any more updates, let me know and I'll make sure to update the zip Thanks for your work on this!
Sorry for the double post, but I have another update: - Fixed bug where shift+backspace did not backspace - Added options dialog to set default tokens file when starting, and to set font: Startup:
Options dialog (under tools):
After you choose a new font:
Hitting save:
It also saves the INI file so that this persists across instances.
Thanks Kevin Alright, I've made a small update: - Fixed saving error where it wouldn't save if it was a new file - Fixed error where if you had a preprocesser directive that was shorter than the replace string it would crash (now it just highlights the line incorrectly ) - Moved some settings to INI file: Font and default tokens file. - Grammer XML file included in download
I was given this problem a few years ago by a professor in college, and worked through it then.
Spoiler For Spoiler:
It was given to us as an exercise in reducing sets to make sense of problems (that terminology is wrong, but you get the idea ). For example, this is super simple if you just think "what if there's just one blue-eyed person", and the solution follows pretty easily from there.
You didn't answer my questions. Have you used a debugger? Have you used debug outputs? What have you done to find what's wrong? You said the code works fine outside of the bot, so there's gotta be something strange the bot is doing.
Looking a little deeper at it, though, if your name is the first one in the list, It think it will return false because of your boolean in the while.
Have you hooked it up to a debugger and stepped through the code to make sure it's doing what you expect? That's where I'd start--that or using debug output statement to see what's going on. Check the name being passed in, check the file name, check each line, etc.