Maybe try setting a max number of images that can be loaded at one time.
Set it up so that as you scroll, it deletes one from where you came
from (if scrolling down then where you came from was the - top)
and adds one to where you are going (if scrolling down, where your
going is - down).
Then
are you keeping all images visible? you should keep visible only the images
inside visible area. All the images outside this area could have visible =
false. Maybe this helps.
[]'s
andrei
On Sun, May 31, 2009 at 3:44 PM, Fabio Pinatti wrote:
> Hello all,
>
> I'm running an issue that is taking
Hello all,
I'm running an issue that is taking my sleep away. If you go to that url:
http://www.costanostra.net/costinha/
you'll see a lot images loading. So, I load one, after loaded I show it,
start load the second one, etc. Until all my xml is complete. The big issue
is, in a moment (almost i
Bit of a breakthrough - if I order the words in my initial list in the order
that the words appear in the crossword solution, my algorithm finds the
solution. Unfortunately though when in a different order, it doesn't work.
___
Flashcoders mailing list
Thanks Charles for the great suggestions.
I will implement your suggestions but am still curious as to why my code
doesn't work. Without ordering the list or starting the first word
elsewhere, the one solution I am aware of for these 16 words has the word
"QUANTITY" top left - hence my reasoning f
Thanks Paul
Yes I suspect my algorithm is incorrect as I have tried 20,000 loops and it
still can't find a solution with all 16 words. I was just thinking as none
of the online crossword generators are able to find a solution that it
perhaps is more complex than meets the eye.
Cheers
Paul
-
Two suggestions.
1) Order your list of words from longest to shortest. Longer words have more
letters to build off of for future word placement. Longer words are also
harder to place within the grid size as additional words are added.
2) Starting your first word in the upper left limits how addit
I suspect that the algorithm is wrong.
For example quantity top left, alb will only fit quantity in one place and
there is only one other "a" candidate "amble". Very quickly your choices
will be reduced due to placement, so 5,000 attempts seems excessive.
Sadly I have a ton of other things to
Thanks Paul
My code should backtrack in the situation you mention. So for example if it
fits tarragon on the first "t" but then continues to not be able to find a
solution with tarragon in this position, it will backtrack so that it
changes "tarragon" to the second "t". However I still can't find
There is a flaw in your logic.
It may be that multiple words fit a given situation, and so it's necessary
(with such a simple algorithm) to backtrack and look for another word to fit
once you are unable to fit another word from your list - so the real problem
is saving where you are in the li
Further to my last post, here is a link to the solution to the crossword
http://www.mediakitchen.co.uk/solution.gif
Before anyone asks, I have tried the crossword generator in the "Advanced
Lingo for Games" book and unfortunately it is unable to create a puzzle with
these 16 words.
quantity
alb
Just to add more information to how I am currently trying to achieve this.
I basically start with the first word in the list and place it in the top
left position 0,0. I then attempt to add the next word in the list by
finding a character in the first word that is the same as one of the
characters
I am creating a crossword generator where you can enter the size of the grid
and a list of words but for the life of me cannot get it to generate a
puzzle with all the words in my list. This list of words is from a crossword
that I know is possible. Now either my generator is not up to scratch or t
13 matches
Mail list logo