Commit Graph

22 Commits

Author SHA1 Message Date
Murilo Pereira
5dce7eb912 Rename version macro definition. 2018-08-12 23:29:45 +02:00
David Seguin
b93fe31f7e
Integrate version number into makefile (fixes #6)
Running with --version relied on having a VERSION file in current
directory. Having the version number in the makefile ensures it
is built into the binary so that --version works all the time.
2018-06-17 21:19:28 -04:00
Murilo Pereira
9df1e4b175 Fix compilation warning. 2017-11-02 18:58:46 +01:00
Grigory Ustinov
f43152c420 Fix non-critical warning: unused result 2017-11-01 21:28:38 +03:00
Philipp Joram
7473c59d05 Fix segfault when launching with unkown option
Bug:    When launching with an unkown option, ttysolitaire crashes with a
        segfault.

Reason: This is due to getopt_long() not knowing where to terminate the search
        for matching options in options[].

Fix:    Append an additional Element to options[] containing only zeroes. This
        is in compliance with the GNU docs. See `man getopt_long` for reference.
2015-11-25 20:47:33 +01:00
Murilo Pereira
9c4ee71eb6 Clear screen before game_init(). 2011-07-02 20:20:07 -03:00
Murilo Pereira
893f18a7e0 Resizing works. 2011-06-19 19:36:29 -03:00
Murilo Pereira
561b4ba599 Pass program name as argument to usage(). 2011-06-12 21:39:11 -03:00
Murilo Pereira
0325778de4 Put usage in the README. 2011-06-12 21:37:03 -03:00
Murilo Pereira
99ae6e954a Renamed the 'draw' module to 'gui'. 2011-06-08 22:55:44 -03:00
Murilo Pereira
b5a93fc871 Update usage. 2011-06-08 12:01:29 -03:00
Murilo Pereira
2744533d96 Decrease noobishness. 2011-06-08 11:51:22 -03:00
Murilo Pereira
7aaa0c82cb Added option to control the number of passes through the deck. 2011-06-08 02:36:46 -03:00
Murilo Pereira
a213bfec55 Added initial opt handling and VERSION file. 2011-06-08 01:02:05 -03:00
Murilo Pereira
0780ab75fb Unmodularizing stupidity. 2011-06-07 00:27:43 -03:00
Murilo Pereira
977c80b91e Updated README with screenshots. 2011-06-06 03:15:44 -03:00
Murilo Pereira
2d27a53d95 Added game_won(). 2011-06-06 00:42:23 -03:00
Murilo Pereira
ce8400740a Some changes. 2011-06-04 17:15:12 -03:00
Murilo Pereira
06782215b2 s/display/draw. 2011-06-03 03:22:48 -03:00
Murilo Pereira
28ce3e07bd Removed stupid curses files. 2011-06-03 03:09:14 -03:00
Murilo Pereira
261950f133 Small refactorings/cleanups. 2011-06-03 02:48:26 -03:00
Murilo Pereira
1c63b767f6 C-ifying project. 2011-05-31 03:03:13 -03:00