Go Fish/Lua: Difference between revisions
m
Fixed syntax highlighting.
(Created page with "{{collection|Go_Fish}} ==={{libheader|LÖVE}}=== Works with <lang Lua> function createDeck () Deck = {} for iSuit = 1, #CardSuits do for iRank = 1, #CardRanks do loc...") |
m (Fixed syntax highlighting.) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2:
==={{libheader|LÖVE}}===
LÖVE (Love2D) v.11.3 solution.
There are no card suit characters in the standard font, so suits are A, B, C and D, but ranks are 1 to 13.
<syntaxhighlight lang="lua">
function createDeck ()
Deck = {}
Line 398 ⟶ 399:
updateGUI ()
end
end</syntaxhighlight>
|