Search results

  1. F

    d20 die roll string parser and roller in C#

    @ThirdWizard, have you any experience with the new built in unit testing in VS2008? Or do you know of any comparison of it with NUnit? I don't think there has been a whole lot of new development with NUnit and, like you said, I don't think it explicitly supports .NET 3.x. (although I'm sure it...
  2. F

    d20 die roll string parser and roller in C#

    @Plane Sailing, You like TDD? I just hate writing the tests. But I should use it more often. Definitely is a good practice/habit/method. Is your 'dungeon viewer' app like MapTools? If so, that would be great..esp one in C# ;) And, to which "new thing by electronic arts" are you referring...
  3. F

    d20 die roll string parser and roller in C#

    @azhrei, that sounds more like a model-view-controller pattern (or n-tier)...but really that is a type of observer pattern I suppose. In your description, this class is just (a portion of) the controller not the observer or viewer. I'd leave it up to the GUI code to type cast or transform the...
  4. F

    d20 die roll string parser and roller in C#

    and if you're talking about the format of the string returned (and all the extraneous info about the die roll), thats just done for demonstration purposes. I assume that anyone using the code would take that out as needed. like I said, the best thing would be just to return type int.
  5. F

    d20 die roll string parser and roller in C#

    my apologies for getting on a rant here, buuuuuuuuut....... dude...it rolls dice.....and its a static method, thats all. using delegates (or call back methods) is overkill for such a simple piece of code. The vast majority of the code is simply parsing the string. If you want to have the...
  6. F

    dice generator

    @Gilwen, I'd love to see your XAML code for the die roller. If you're looking for code to parse a complex dice-string (even handles parenthesis), I posted some C# code here... An example input string could be: 4(2d8+9)+(3d6+1)-10 I translated some java code from another poster into C#. But I...
  7. F

    d20 die roll string parser and roller in C#

    A bug fix Had to make a fix to the code where if you passed a die-string using only one die it would malfunction. So now, if you pass in "1d6" or "1d1000" or whatever it will. I have also pasted the code here in the post below. PS. I hate that I have to zip the file in order to upload it...
  8. F

    d20 die roll string parser and roller in C#

    This is not a compiled app, just one class written in C#. This is a static class 'Dice' using a static method 'Roll(string)' that accepts any normal type die roll string (including parenthetical groupings) and outputs the individual rolls, grouping break-downs, and totals as a string. I took...
  9. F

    Monte's 3.75? (A sequal is on its way)

    The only reason this new product even exists is because people over at Monte's own official forum begged and pleaded with him to write up a product describing his own house ruled which he had mentioned many times before (before 4E was a topic over here) but had never gone into deep detail about...
  10. F

    Luminotes personal wiki for GMs

    I checked it out..real nice. Simple and Straighforward. There are some small things that I will need to investigate farther. But in regards to the above mentioned inline image issue...what would be pretty neat is to have small thumbnails inline along with a bigger thumbnail popup on rollover...
  11. F

    Can someone agree with me here?

    Yea, you're probably right. And I think that is what it finally comes down to. One can hope that the 4E rules are vastly more conducive to computer coding and db storage. Since the rules aren't really written yet, and obviously not coded, perhaps the possibility isn't so unlikely. I would...
  12. F

    Can someone agree with me here?

    <ramble> Allz I'm saying is... With all this fleecing talk coming from the 4E discussion, and since this "fleecing" is at least somewhat true (to what degree depends on your perspective and income level), then why doesn't someone get together with a couple of other friends and create their own...
Top