d$ = "111122223333444455556666777788889999JJJJQQQQKKKKAAAA"
1 c
= 2 * INT(RND * 52 + 1) - 1 IF c
> p
THEN computer&&
= computer&&
+ 1 IF c
< p
THEN player&&
= player&&
+ 1 _TITLE SPACE$(52) + "Tiny High Card Game Computer:" + STR$(computer&&
) + " Player:" + STR$(player&&
)
'' assuming suit order as Ascending Alphabit: lowest to highest Clubs, Diamonds, Hearts, Spades as in Bridge
'use this code to rebuild d$ above because forum can't handle ASCII
'FOR v = 1 TO 13
' FOR s = 1 TO 4
' ' sorry 10 doesn't work well here so cards are 1 to 9 J Q K A
' d$ = d$ + MID$("123456789JQKA", v, 1) + MID$(CHR$(5) + CHR$(4) + CHR$(3) + CHR$(6), s, 1)
' NEXT
'NEXT
'_CLIPBOARD$ = d$