Jump to content

PHP and the Breeding Sim


crimsonduex

Recommended Posts

I've looked all over, but I can't seem to find any help at all. I've been asked to try and create a php script for an online breeding sim dealing with horses. I have all the necessary genetics information, have everything planned out nice and pretty, but I can't for the life of me figure out HOW to code it.

I have only the very basic knowledge of php, but I do know C++ and since they look superficially rather similar, I thought I could do it, but I really am lost.

Does anyone know what kind of script I should be writing? I thought maybe OOP might work, since it deals with inheritance, but I'm not entirely sure. Basically, the script needs to take data from each parent -- the stats, breed, and color information are all already coded -- and do the pundit square math. There would be the basic stat conversion, where the foal would inherit the sum of both parents' stat*.35, and then the color genes would do the regular thing... pureblood bayXpureblood bay=pureblood bay and so on.

Can anyone help?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.