Username:
Password:
Stay logged in

UlyssesBlue is a genius

ForumsEquiverse Chat → UlyssesBlue is a genius

UlyssesBlue is a genius

#93682 Posted on 2017-02-17 18:20:41

UlyssessBlue came up with a Foal Genotype Calculator that lets you input Sire and Dam genotypes and gives you the possible genotypes of their foal. Try it out!

I am wondering if there are any code-savvy EVers who would like to work on building...

A Punnett square calculator!!

Similar to this website, but specific for Equiverse - you would enter the genotype of the sire and dam and get predictions for the color of the foal.

Punnett Square Calculator

I'm wondering if I can dig up enough coding knowledge to build something like this out of HTML/CSS using forms.


Last edited on 2017-02-19 at 12:26:33 by Ðemure


0 members like this post.

member signature

Posted By

Ðemure
#98096


Member is Offline
603 forum posts
Send A Message

#93697 Posted on 2017-02-17 19:24:15

You'll need Javascript for any sort of calculator. HTML/CSS are just for display and formatting. I considered making something like this a while back, but abandoned it since it rapidly got too complex for my skills, and similar calculators already existed around the internet. They're not exactly the same as EV genetics though, although some come close.

It would be good to have something that does work for EV, but this is likely to be a massive project. A professional coder could do it (I'm not one), or perhaps several amateur ones. I could maybe help out, but a project of this size and complexity is beyond me on my own.


0 members like this post.

Posted By

UlyssesBlue (spare)
#75110


Member is Offline
559 forum posts
Send A Message

#93700 Posted on 2017-02-17 19:36:16

Interesting! I haven't done anything with Javascript. I think I'm going to do some planning and see how much coding we'll need. How far did you get before you gave up?


0 members like this post.

member signature

Posted By

Ðemure
#98096


Member is Offline
603 forum posts
Send A Message

#93702 Posted on 2017-02-17 19:42:24

Just planning and research, mostly. Let me dig up what I've got...

*edit* not much, but it's easy enough to throw together the basics for the form and such. It's the javascript calculations in the background that are hard. I'll flesh out a few things then put it online somewhere you can have a look at it.

Last edited on 2017-02-17 at 20:18:47 by UlyssesBlue (spare)


0 members like this post.

Posted By

UlyssesBlue (spare)
#75110


Member is Offline
559 forum posts
Send A Message

#93715 Posted on 2017-02-17 20:55:00

Ok, it's online here.

This just shows the raw code, not what it does. To see what it does copy it all into a text file on your computer, save as a .html file, then open that file in your browser. This is just the basics so far - a form and a few calculations to read everything in properly, nothing more.

Feel free to edit it, add suggestions, whatever. I've got a copy on my computer so it's not as if you can break anything. ;)


0 members like this post.

Posted By

UlyssesBlue (spare)
#75110


Member is Offline
559 forum posts
Send A Message

#93719 Posted on 2017-02-17 21:02:40

Hmm, interesting. I will be pretty (read: somewhat) useless with the code part of that. Copying and pasting the whole genotype is much faster than the dropdown lists I had in mind. Or do you copy the horse URL? Did you design this with the whole genotype in mind, or just base coats?

Edit: I see where it says dam/sire genes now. Disregard ;)

Last edited on 2017-02-17 at 21:03:05 by Ðemure


0 members like this post.

member signature

Posted By

Ðemure
#98096


Member is Offline
603 forum posts
Send A Message

#93721 Posted on 2017-02-17 21:23:59

So what exactly do you want this program to do? Just produce a punnet square for each gene? Or other things as well?


0 members like this post.

Posted By

UlyssesBlue (spare)
#75110


Member is Offline
559 forum posts
Send A Message

#93752 Posted on 2017-02-18 00:37:48

I've updated the code at the link above. If you run it it will now calculate the foal's Extension genes, and the probabilities of each. You can see why I called this project enormous and complicated. :P

I only have a passing familiarity with javascript, so my code is probably a lot more horrendous than it could be, even though it does work. Any suggestions would be greatly appreciated.


1 members like this post.

Posted By

UlyssesBlue (spare)
#75110


Member is Offline
559 forum posts
Send A Message

#93759 Posted on 2017-02-18 04:30:44

Sooooooooo....... I think I might have got something working. :P
Foal Genotype Calculator
More than a bit chuffed about this, considering I once wrote this off as impossible. :D

Known issues: overo is able to produce OO as a possibility, despite this being forbidden on EV.
Also, the output is a bit horrendous because I just slapped something together for testing purposes. I'll fix this next.


2 members like this post.

Posted By

UlyssesBlue (spare)
#75110


Member is Offline
559 forum posts
Send A Message

#94042 Posted on 2017-02-19 09:26:59

=O I love it! We need everyone to try this out!

The next piece of information I would be curious about it converting the genes into a phenotype (Ee = Black, Ee Dd = Grullo, etc).

That's gotta be a massive list...


0 members like this post.

member signature

Posted By

Ðemure
#98096


Member is Offline
603 forum posts
Send A Message

#94051 Posted on 2017-02-19 10:38:29

I play on my mobile mostly and I can't get it to give me the calculations.


0 members like this post.

Posted By
♋Blue Moon's Gypsy Herd
#30774


Member is Offline
126 forum posts
Send A Message

#94061 Posted on 2017-02-19 11:30:58

This should be stickied.. Or a new post just with the calculator info/updates from UlyssesBlue (spare) should be stickied. This is a nice little tool.


0 members like this post.

Posted By

Storms - /A/A Main
#28387


Member is Offline
267 forum posts
Send A Message

#94070 Posted on 2017-02-19 12:00:58

oh wow

ulysses you should make a separate post with a link to this so it can be stickied!


1 members like this post.

member signature

Posted By

wey
#94343


Member is Offline
3495 forum posts
Send A Message

#94077 Posted on 2017-02-19 12:24:11

@Blue Moon - what mobile browser do you use? Have you tried it on another browser? Let us know!


0 members like this post.

member signature

Posted By

Ðemure
#98096


Member is Offline
603 forum posts
Send A Message

#94079 Posted on 2017-02-19 12:28:35

UlyssesBlue, I went to click on the suggestion link and it opened the link within a target/frame and I couldn't find where to post the suggestion.


0 members like this post.

member signature

Posted By

Ðemure
#98096


Member is Offline
603 forum posts
Send A Message