Thread: RecipeSYS
View Single Post
Old 08-26-2008, 02:02 PM   #11
Join Date: Aug 2008
Posts: 14

Submissions (1)

Artificial is on a distinguished road (12)


Ok, I made some improvements. First of all, I made the functions take and return recipes instead of integers, and the recipe struct no longer is private.
Second of all, I made 2 versions of it; one using GC and one a hash table I found (this one). Now I'm wondering if you guys could tell me which one should be better, or if there is a way for me to test their speeds (which I would like to do even though you would be able to say which one is better) and how to do it.

Here are the codes in case you wanna see them.
Expand Gamecache:
Expand Hash table:
It was fun learning how to use GC and that hash table, so thanks for making me learn to use them.
How to solve problems:
- Write the problem on paper.
- Think hard.
- Write the answer.
♪♫ "Dansa med oss, klappa era händer.
Gör som vi gör, ta några steg åt vänster.
Lyssna och lär, missa inte chansen.
Nu är vi här med caramelldansen."
Artificial is offline   Reply With Quote