MrDEB
Well-Known Member
before I get too screwed up but want to compare a series of button presses corisponding to leds. Think of the old Simon game
using Swordfish basic
LED1comes on then off. Led2 comes on then off. Led4 comes on then off
now the player must repeat the same sequence Swt1, Swt2, Swt4
thinking COMPARE (StrA, StrBm StrD as string) as short INT but maybe just give each button press a value but it dosen't add up correctly.
Another thought was LED1comes on then off. Led2 comes on then off. Led4 comes on then off
LED1=1and Led2 = 3 and LED4 - 5
so if button presses = 9 then pattern was correct. If other than 9 then incorrect. Issue is if SAME pattern is in different order then it still adds up to 9
getting confussed already
using Swordfish basic
LED1comes on then off. Led2 comes on then off. Led4 comes on then off
now the player must repeat the same sequence Swt1, Swt2, Swt4
thinking COMPARE (StrA, StrBm StrD as string) as short INT but maybe just give each button press a value but it dosen't add up correctly.
Another thought was LED1comes on then off. Led2 comes on then off. Led4 comes on then off
LED1=1and Led2 = 3 and LED4 - 5
so if button presses = 9 then pattern was correct. If other than 9 then incorrect. Issue is if SAME pattern is in different order then it still adds up to 9
getting confussed already