Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
Coding randomness: Warhammer

As the next step in my Python studies, I have thrown together a small app which helps out with visualizing attack outcomes in Warhammer 40K tabletop. It takes some statistics in a form, and uses matplotlib to make a png histogram of the damage dealt against likelihood. I wanted to show the app here to get some feedback before distributing among Warhammer communities. Interested in anything that breaks it, of course, and any calculations strangeness that you guys can identify: http://b4cchus.pythonanywhere.com.

As an aside, programming has gotten really easy, we live in an amazing world. The modals that are used here for Specials pop-up are pure CSS, I am so stunned.
DL: PB12 | Playing: PB13
Reply

Nice program, works smoothly even though I have no real idea what it's telling me. smile

I tried fiddling with input values to look for problems.

It seems happy to accept out-of-bounds input values (e.g skill 7) and then produce a blank graph without explanation of why it's failing. This is probably not a big problem for people who know the system well enough to be real users of the program.

It seems to be limited in numbers and sizes of dice the Shots input can contain: no more than 9 dice, with no more than 9 sides.

If you use 1d2 shots, with otherwise default values, the output graph isn't scaled correctly.

I tried 1000 shots with otherwise default values, and it ran for quite a while before producing a 500 internal server error.

I've no idea if you care about any of these, as they might not be sensible input for the 40k system anyway. smile
Reply

Cheers, that's always useful for me, as a coding learner in any case. For example, it tells me that re validation seems to be not working properly.
DL: PB12 | Playing: PB13
Reply

Now, if only someone who knows CSS could explain why on earth the checkboxes in specials don't appear on the same line as their labels, even though CSS specifies inline for the label as well as the input....
DL: PB12 | Playing: PB13
Reply

CSS is magic to me, I'm afraid. I'm happy to offer help with Python though, if you need any.
Reply

The answer was that checkbox inputs inherited a fixed width from a generic input element.
DL: PB12 | Playing: PB13
Reply



Forum Jump: