Playing cards: Difference between revisions

(Added AHK)
Line 227:
While card%A_Index%
Random, card%A_Index%, 1, 52
card%A_Index% := Mod(card%A_Index%, 12) . " of " . ((card%A_Index% <= 12) ? "diamonds" : ((card%A_Index%) <= 24) ? "hearts" : ((card%A_Index% <= 36) ? "clubs" : "spades")))
? "diamonds" : ((card%A_Index%) <= 24)
? "hearts" : ((card%A_Index% <= 36)
? "clubs"
: "spades")))
allcards .= card%A_Index% . "`n"
}
Anonymous user