Log In  

Cart #looploop64-0 | 2021-12-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

This random sprite generator will never stop until it's finds the perfect 8*8 Jelpi sprite
[8x8]

P#102600 2021-12-13 20:13 ( Edited 2021-12-14 09:39)

1

I'm intrigued at the determination in what you are doing here, @Billal50.

First off, let's see how many possible combinations you can have in an 8x8 field with 16-colors.

Calculated.

There are :

115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,936

possible combinations for the pixels to appear with only one being the JELPI.

What you MIGHT do is search for a B&W of it to have a greater chance. Here, let me see ...

[8x8]

Now in searching for THIS image staying only with B&W dots the number gets a bit smaller:

18,446,744,073,709,551,616

So there are that many possibilities of pixels to appear with only one being the B&W JELPI.

Still. You are using FLIP() every cycle. Let's add a keystroke that skips FLIP() to make your program run top speed in its search for JELPI.

Here, try this. Hold (O) to skip the FLIP(). That is your code running flat out.

Cart #wofoniyeko-0 | 2021-12-13 | Code ▽ | Embed ▽ | No License
1

P#102622 2021-12-13 22:23

@dw817 yeah thanks,i already did the math ,it's was just a joke , i used flip() to show every generated sprite every frame

P#102727 2021-12-14 09:34

[Please log in to post a comment]