Pedigree Generator

I had to share this with everyone because I’m fairly pleased with myself ;D

I’m not a bigwig programmer or anything that could come near to what Shanthi, and I suspect a few other people on here as well, can do, but I’ve been looking at programming since october/november. I’m 1 for 2 on teacher/professors who actually know how to speak, so total programming learning has been about a week altogether, if that much.

Anyhow, I’ve been working with DarkBASIC lately and tonight I was bored enough to open it up and attempt a program.

Cue… pedigree generator!

Ok, so its only a tiny bit done (its supposed to display 2 horse names, one male, one female, but only does one at the moment), but I have the principles down and I just have to enter in a bunch of names, make the text larger, maybe more pretty looking then a big black screen with white words. But it works enough to display a few names randomly with a loop. So, yay small pitiful program. At least its a tiny step in a vast trail.  :wink:

(A really tiny step. I think there are 9 lines of instruction, and five times that in entered names, lol)

Here are some screenies of my 1/10 finished project->

Top Of Code

Bottom Of Code

End Result

(believe it or not, but in the last one, there is actually tiny, tiny text in the top lefthand corner)

Its got a few little issues that could be fixed that I’ll deal with later. And I’m going to add more of a persona to it to make it neater, maybe some user input as well. But this is what an hour of typing/figuring out got me, lol. At the very least and most, it should help me with FF pedigree ideas.

Now I just have to do the actual assignment I was supposed to do instead of this, and I’ll be alright  :wink:

Looks pretty neat, I have no idea what I’m looking at programming-wise but great job coming up with it! Good idea.

Looks good. :slight_smile:  Though just from a logic standpoint, I’d change line #90 to dynamically figure out how big femalenames is, in case you decide to add more later.  Assuming DarkBASIC does that, anyway.

Congrats on coming over to the dark side…

That was  an awful pun, Shanthi :wink:.

Congrats on your code though. :slight_smile:  Working programs always make me feel incredibly pleased with myself.  Of course, non-working programs can make me feel like an idiot :wink:.  I think my first “real” program I wrote was a C program that Shanthi could use to generate foals waaaay back when.  It basically averaged parent heights and added or subtracted a little, and used this god-awful multidimensional array to figure out what color the foal could be from parents.

I totally wasn’t aiming for bad puns, I promise. :wink:

I think my first program that I actually wrote myself was attempting to emulate Stretch Drive with my own code.  Needless to say, it didn’t work, but I think our race code’s pretty decent, huge margins aside.

Seeing as I don’t think I could come up with a complex code at all, just the thought of what had to go into the code impresses me  :wink:

I’ll probably keep on tweaking with it, but I’ve got to finish my other assignments first. But if Color War has a pedigree submission contest, I predict this will come in handy. And DarkBASIC is fairly cheap, so, yeah, lol.

Anyhow thanks for the compliments/semi-cheesy pun, this first program was pretty huge for me :slight_smile: