Foal Coat Color Calculator
Forums
Is there a way to streamline
Is there a way to streamline the results into maybe phenotype groupings or something? I tried the following pairing for the sake of testing, and the results were so disorganised. In theory, half of the possibilities are grey, no matter what is being carried, but it difficult to go through for the rest.
Ee AtAt gg Ccr Dd chch Zz
x
ee Aa Gg prl cr dd Chch zz
Quote:I tried it, entered all
[quote]I tried it, entered all info I know, pressed the submit button, and nuthin'. Not a dang thing happened. Is it down or something or did I do something wrong?[/quote]
It when you enter a bunch of things it takes the server a bit to calculate. Even on my home computer (without the internet involved) it can take several seconds.
[quote]Is there a way to streamline the results into maybe phenotype groupings or something? I tried the following pairing for the sake of testing, and the results were so disorganised. In theory, half of the possibilities are grey, no matter what is being carried, but it difficult to go through for the rest.
Ee AtAt gg Ccr Dd chch Zz[/quote]
There probably is but I'll have to research the options for a bit. I may can add a column sort type feature but I'm not sure how that will affect the images.
Ok, I did do a bit of testing
Ok, I did do a bit of testing and if you enter a bunch combinations it takes a HUGE amount of memory and maxes out the php memory limit. On my home computer it was using over 500mb which is more than the entire server ymwhisle . I'm going to have to add a some code that will limit the number of combinations. You will still be able to do more than enough for real life situations just not all of them at once. The number of possible permutations starts getting quite large after a bit. It's calculated by n! so if there are 6 possible combinations the number of permutations is 6*5*4*3*2*1 as you can see it can get very large and all that info has to be stored in memory.
Quote:Maybe we could have a
[quote]Maybe we could have a set location for the picture and then list the % chance of the phenotype, and then grouped under the phenotype but smaller we could have the actual genes?[/quote]
I'm not sure I can do something like this the way the program is written or even that I want to do it. I'll have to think about it.
I did fix the appy patterns.
Ok, I've redone the results
Ok, I've redone the results page a bit. It is now in a table with sortable columns.
This was took way more time than I had imagined. The actual coding wasn't that hard but the sorting has to be done by JavaScript which I know nothing about. So I had to try a bunch of ready made solutions. I think I tried 5 before I found one that actually looked ok and did what I wanted. All the others either messed up the images or didn't allow for a fixed header.
I GUESS ya'll are worth it... ymwhisle ymwhisle ymwhisle
Oh I also fixed a small bug where a brown + buckskin was showing the image for a bay buckskin instead of a brown buckskin.
Very cool. According to the
Very cool. According to the calculator, my pony had a 12.5% chance of cropping up based on his parents (ee CcrC KitWkit SPLspl X ee CC kitkit SPLspl = ee CcrC KitWkit SPLspl), with my boy being identical to his sire. The fact that he has an identical full sister is even more interesting.
So far I like it, it seems to
So far I like it, it seems to be working okay for me.
The horses are butt ugly, though. ymwhisle