Unicorn wrote:
Thanks a ton Wright!
So, if I want to check if it goes from top right to bottom left, do this?
Code:
10fPart(.1K
If Ans<3 and not(Z
Then
iPart(.1K
If Ans>5
1->Z
End
If Ans<3 and Ans and Z:Then
iPart(.1K
If Ans<1 and Ans:Then
"GREAT JOB!
real(6,0,0,15,0,47,1
real(6,0,0,15,0,47,1
End
End
I have a feeling that this is wrong, but it was the best I could figure out.
Close! That code detects for swiping from the bottom left to the top row of keys (the small gray ones). To help you out, here's a list of what key outputs you'd get and how it'd check for them when pressing various keys.
If CLEAR is pressed:
Code:
;K=45
10fPart(.1K
;Ans=5
;Ans<3 and not(Z) = False
;DO NOTHING
If NEGATIVE (-) is pressed:
Code:
; K=104
10fPart(.1K
; Ans=4
; Ans<3 and not(Z) = False
; DO NOTHING
If NOTHING is pressed:
Code:
; K=0
10fPart(.1K
; Ans=0
; Ans<3 and not(Z) = True
If Ans<3 and not(Z
Then
iPart(.1K
; Ans=0
; Ans>5 = False
; DO NOTHING
If STO is pressed:
Code:
; K=91
10fPart(.1K
; Ans=1
; Ans<3 and not(Z) = True
If Ans<3 and not(Z
Then
iPart(.1K
; Ans=9
; Ans>5 = True
If Ans>5
1->Z
End
; proceed to next step
Now that we've gotten past the first step, let's move on to detection of the second bit.
If CLEAR is pressed:
Code:
; K=45
10fPart(.1K
; Ans=5
Ans<5 and Ans and Z = False
; DO NOTHING
If 2ND is pressed:
Code:
; K=21
10fPart(.1K
; Ans=1
; Ans<5 and Ans and Z = True
If Ans<5 and Ans and Z:Then
iPart(.1K
; Ans=2
Ans<1 and Ans = False
; DO NOTHING
If Y= is pressed:
Code:
; K=11
10fPart(.1K
; Ans=1
; Ans<5 and Ans and Z = True
If Ans<5 and Ans and Z:Then
iPart(.1K
; Ans<1 and Ans = True
If Ans<1 and Ans:Then
"GREAT JOB!
real(6,0,0,15,0,47,1
real(6,0,0,15,0,47,1
End
End
; success