From 89b2a2c5127948e3ceb0d36793cfab4e0a10cdb2 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 24 Mar 2019 14:03:15 -0400 Subject: Choose card back randomly --- sol.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sol.c b/sol.c index 567bf7c..724aefd 100644 --- a/sol.c +++ b/sol.c @@ -224,9 +224,7 @@ static struct { struct List drag; struct Item dragItem; uint backTexture; -} layout = { - .backTexture = Cards_Back1, -}; +} layout; static struct Item *layoutFind(const SDL_Point *point) { for (uint i = layout.main.len - 1; i < layout.main.len; --i) { @@ -456,6 +454,7 @@ int main(void) { Cards_Free(cards); srand(time(NULL)); + layout.backTexture = Cards_Back1 + randUniform(12); gameDeal(); for (;;) { -- cgit 1.4.1 t type='submit' value='switch'/> dontfiles
summary refs log tree commit diff
path: root/etc (unfollow)
Commit message (Expand)Author
2021-01-12Prevent matching the same tag twiceJune McEnroe
2021-01-12Process htagml file line by lineJune McEnroe
2021-01-12Split fields by tab onlyJune McEnroe
2021-01-12List both Makefile and html.sh under README.7June McEnroe
2021-01-12Add htagml exampleJune McEnroe
2021-01-12Use mandoc and htagml for bin htmlJune McEnroe
2021-01-12Add htagmlJune McEnroe
2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe
2021-01-11Publish "Using vi"June McEnroe
2021-01-11Enable diff.colorMovedJune McEnroe
2021-01-10Set less search case-insensitiveJune McEnroe
2021-01-10Set EXINITJune McEnroe
2021-01-09Add c -t flag to print expression typeJune McEnroe
2021-01-05Update taglineJune McEnroe