Commit Graph

342 Commits

Author SHA1 Message Date
2024d53e48 Merge remote-tracking branch 'AZMCODE/tty-solitaire/auto-win-disable' 2024-11-26 22:25:01 +01:00
17cfae9c54 Merge remote-tracking branch 'DolphyWind/tty-solitaire/auto_uncover_top' 2024-11-26 22:22:43 +01:00
Murilo Pereira
9c7212cae0
Merge pull request #68 from lrprince/maneuvre-drawing-bugfix
Fix drawing bug on maneuvre stacks
2024-09-23 01:00:44 +02:00
Larry Prince
e989b69340 Fix drawing bug on maneuvre stacks
Instead of using stack_length, base the cursor Y position on the
location of the first card in the stack.

To reproduce:
[space] to start game
[down] to move to first maneuvre stack
[space] to select card
[up] move up
[down] move back down to selected card. Cursor is one line too high
[space] deselect card
[space] select card.

The bottom center of the card is drawn with the background color.
2024-09-21 10:03:45 -07:00
Murilo Pereira
ef83b74a3c Fix twelve-year-old misspelling 2023-03-16 15:42:35 +01:00
Murilo Pereira
525a00e6e2
Merge pull request #67 from DolphyWind/memory_leak_fix
Memory gets freed when you quit after you select a card
2023-02-10 13:11:38 +01:00
DolphyWind
22ec7de16c Memory gets freed when you quit after you select a card 2023-02-10 13:56:27 +03:00
DolphyWind
7f459aa5b8 Automatically expose the top card on a maneuvre after a move 2023-01-11 00:17:39 +03:00
AZMCode
ea1b78b9b2 Add a command line flag to disable auto-win behavior 2022-09-05 10:28:48 -04:00
Murilo Pereira
14cd5e61bb Drop GCC -fcommon so that the new default -fno-common is used
Thanks to @greno4ka for the tip in
 https://github.com/mpereira/tty-solitaire/pull/58
2021-11-03 13:56:31 +01:00
Murilo Pereira
7958cea858 Move cursor and deck variable definitions to game.c 2021-11-03 13:56:03 +01:00
Murilo Pereira
4cc3d9c070
Merge pull request #58 from greno4ka/fix-for-gcc10
Make gcc10 happy
2021-11-03 13:54:51 +01:00
Murilo Pereira
acc75d4224
Merge pull request #61 from trofi/master
src/gui.c: always use "%s"-style format for printf()-style functions
2021-11-03 10:43:24 +01:00
Sergei Trofimovich
4d066c564d src/gui.c: always use "%s"-style format for printf()-style functions
`ncuses-6.3` added printf-style function attributes and now makes
it easier to catch cases when user input is used in palce of format
string when built with CFLAGS=-Werror=format-security:

    src/gui.c:48:13: error: format not a string literal and no format arguments [-Werror=format-security]
       48 |             card_suits[card->suit]);
          |             ^~~~~~~~~~

Let's wrap all the missing places with "%s" format.
2021-11-02 23:24:42 +00:00
Murilo Pereira
4875f34e6b Release 1.3.1 2021-09-03 17:03:20 +01:00
Murilo Pereira
9d32aae34f
Merge pull request #60 from vaporup/master
change the usage output to not include the full contents of argv[0]
2021-09-03 17:59:35 +02:00
Sven Wick
276de8b68e changes the usage output to not include the full contents of argv[0] 2021-09-02 22:08:33 +02:00
Murilo Pereira
9561b23652 Add Debian testing to installation options 2021-08-31 14:09:55 +02:00
Grigory Ustinov
8bba55df41 Make gcc10 happy
gcc-10 and above flipped a default from -fcommon to -fno-common.
So now GCC will reject multiple definitions of global variables.
2020-12-21 18:56:41 +03:00
Murilo Pereira
452bae128e
Merge pull request #54 from MimmyJau/fix-greeting
Modified language of greeting and included <Shift+M> command
2020-11-21 11:06:30 +01:00
Murilo Pereira
b236fa46ae
Merge pull request #51 from MimmyJau/fix-grammar
Fixed grammar in comments
2020-11-21 10:25:08 +01:00
Jimmy
f95b1000a9 Modified language of greeting and included <Shift+M> command 2020-11-21 00:21:19 -05:00
Jimmy
9850f86c88 Fixed grammar in comments 2020-11-19 22:54:04 -05:00
Murilo Pereira
b937ec599a Add Nix to installation options. 2020-11-11 10:26:55 +01:00
Murilo Pereira
56f788e293 Add Repology badge. 2020-11-11 10:26:55 +01:00
Murilo Pereira
ff368bc980 Release 1.3.0. 2020-06-01 17:03:35 +02:00
Murilo Pereira
e74df8d067
Merge pull request #43 from mpereira/four-color-deck
Four-color deck mode
2020-06-01 16:55:46 +02:00
Murilo Pereira
2fe7075946 Make "--colors" be "four-color-deck".
Also, some automatic file formatting with LSP via LLVM.
2020-06-01 16:51:26 +02:00
Murilo Pereira
87619ed80a Merge branch 'master' into four-color-deck 2020-06-01 16:27:29 +02:00
Murilo Pereira
da9a59649f Change "color" int option to "no-background-color" bool option. 2020-06-01 16:23:20 +02:00
Murilo Pereira
0ce1526c81 Automatically format file with LSP via LLVM. 2020-06-01 15:44:10 +02:00
Murilo Pereira
456b66d008
Merge pull request #31 from Siborgium/master
Option to use default terminal colors for color pair 0.
2020-06-01 15:42:31 +02:00
Murilo Pereira
5bbaafde79
Merge pull request #42 from dther/master
Add C flag to allow tentative definitions
2020-06-01 15:39:24 +02:00
Rudy Dellomas III
080e4af432 Merge branch 'master' of http://github.com/mpereira/tty-solitaire 2020-06-01 12:37:20 +10:00
Rudy Dellomas III
d44c1eb623 Add C flag to allow tentative definitions
A gcc-10 changes the default behaviour from -fcommon to -fno-common,
which causes linking errors in some build processes.

Fixes #40.
2020-06-01 12:33:57 +10:00
Murilo Pereira
3ac90c806a Release 1.2.0. 2020-05-31 23:04:47 +02:00
Murilo Pereira
223837b9e0
Merge pull request #41 from dther/master
Redraw card background to prevent visual artefacts
2020-05-31 22:40:22 +02:00
Murilo Pereira
379ef4322c
Merge pull request #35 from yoyoma2/master
Fix make test (Issue #14)
2020-05-31 22:37:23 +02:00
Murilo Pereira
975c778683 Add Ncurses references to development README section. 2020-05-31 22:02:58 +02:00
Murilo Pereira
ca3acc8251 Add package manager install instructions to README.
And small cleanup.
2020-05-31 21:57:08 +02:00
Rudy Dellomas III
56177f4393 Redraw card background to prevent visual artefacts
Fixes issue #37.
2020-06-01 01:12:40 +10:00
Murilo Pereira
0268d6df09
Merge pull request #36 from porridge/clean
Make the clean target actually work
2019-05-15 23:06:08 +02:00
Marcin Owsiany
ab9cd8cb91 Make the clean target actually work 2019-05-15 22:11:48 +02:00
flamin
5cd663b589 Fix off by one error inf shuffle_deck() 2019-01-23 14:23:16 -05:00
flamin
1aa7e560f1 Fix all memory leaks reported by valgrind 2019-01-21 16:02:04 -05:00
flamin
69bf25f87e Fix make test (Issue #14) 2019-01-20 20:31:35 -05:00
Sebastian Riedel
90e50dcc4c Add four color mode
Fix #32
2019-01-14 06:52:38 +01:00
Sergey Smirnykh
df18b0497b option to use default terminal colors for color pair 0 2019-01-03 23:09:46 +07:00
Murilo Pereira
57c481f506 Bump version to 1.1.1. 2018-11-10 06:00:46 +01:00
Murilo Pereira
03b9cdf9c1 Forgot this. 2018-09-02 21:41:28 +02:00