Page 2 of 5
Re: Project Snake
Posted: Sat Jun 27, 2015 6:59 am
by superryan94
I managed to make Snake move the way it should be^^
But now that I'm working on the apples I get to a problem. I want to make an instable oscilating circuit for a randomizer. But I am not allowed to make an oscilating circuit. Do you happen to have some randomizer examples that I can use to make it?
PS: I have an idea but that would take a massive amount of time an a huge amount of gates with possibly will result in a circuit that is to slow to work properly.
Re: Project Snake
Posted: Sat Jun 27, 2015 11:46 am
by admin
You can use sensor to generate random values.
Re: Project Snake
Posted: Sat Jun 27, 2015 1:06 pm
by superryan94
Can you give a little explantion on the sensor? I can't make a randomizer with only 1 output with it.
It will give a lot of apples when I do it like this. And if I make a demultiplexer for it it will be one with 840 and gates whits I think is a little big...
Re: Project Snake
Posted: Sat Jun 27, 2015 5:03 pm
by admin
I am not sore about what you need. But you can use the sensor to give random number for row and column where the apple is located. If this doesn’t answer your question please give more information on what you need.
Re: Project Snake
Posted: Mon Jun 29, 2015 10:35 am
by superryan94
I have already figured out how it works. My randomizet is now a lot smaller than I initially would design it. Thanks for saying that the sensor is an output and not an input:)
But now I have another question. Why is my circuit oscilating?
It should be a stable flipflop like randomizer...
Re: Project Snake
Posted: Mon Jun 29, 2015 10:41 am
by superryan94
And if it doesn't oscilate it's a real attack on my clock speed.
With randomizer
Without the randomizer
Re: Project Snake
Posted: Mon Jun 29, 2015 10:54 am
by admin
Can you please share your circuit here?
Re: Project Snake
Posted: Mon Jun 29, 2015 11:38 am
by superryan94
Sure
Re: Project Snake
Posted: Thu Jul 02, 2015 10:23 am
by superryan94
Did you already have time to look into it?
Re: Project Snake
Posted: Thu Jul 02, 2015 10:47 am
by admin
I did not figured out how to make it oscillate, so I hope you can give a hint, but looks like performance investigation will take a bit longer.