05-03-2009 10:56 AM
You code make little sense.
05-03-2009 11:28 AM
ok I changed a couple of things but I am still a little confused about the replace array subset I get how the for loop is not needed, but I just dont know what to put in the replace element?
05-03-2009 11:34 AM
05-03-2009 02:06 PM
No! You now have an empty boolean array in a shift regsiter, so replacing elements will not work. You can only replace existing elements. The array in the shift register must be the size of the playing field.
Here's a quick modification of my old VI adding the paddles. It also shows a way to read the up/down buttons.
(I also changed to classic booleans for efficiency). The computer plays perfect, so you cannot win. 😄
See if it makes sense to you. 😉
05-03-2009 05:53 PM
I understand what you did I just wish I could have thought of it lol.
thanks man you know your stuff
05-03-2009 06:17 PM
05-03-2009 09:50 PM
well I have been working on this for about an hour and I figured I could make it a little bit more random so that you can win lol
so my attempt failed maybe someone can tell me why.
05-04-2009 12:57 AM
I would just accumulate a small random error, e.g. as follows.
I also made a small change to make the paddle more responsive (eliminating the key repeat and coding around it to remove the key repeat delay).
05-04-2009 01:16 AM
well I geuss that is why your a labview champion thank you for the help with this like I said before I only wish I would have thought of it.
05-04-2009 01:39 AM