Commit Graph

342 Commits

Author SHA1 Message Date
Murilo Pereira
261950f133 Small refactorings/cleanups. 2011-06-03 02:48:26 -03:00
Murilo Pereira
b5811c5d6d Adding some function declarations and removing wtf. 2011-06-03 00:18:17 -03:00
Murilo Pereira
4cdf785130 Not needed anymore. 2011-06-03 00:17:11 -03:00
Murilo Pereira
fefb2ed92f These are only used here. 2011-06-03 00:15:47 -03:00
Murilo Pereira
548fe23b5d Don't segfault when moving to/off the invalid spot [2]. 2011-06-03 00:10:48 -03:00
Murilo Pereira
9fbd1cbcaf Only one reference to symbol strings. 2011-06-03 00:07:02 -03:00
Murilo Pereira
51c3b51a8b Fixed some things.
* Movement to empty maneuvre stacks only accept kings.
* Fixed moving to foundation stacks that are not empty.
* Card values go from ACE to KING.
2011-06-01 11:43:18 -03:00
Murilo Pereira
2092abc021 Expose covered top cards. 2011-06-01 02:24:02 -03:00
Murilo Pereira
74bdd55bd5 Added actual klondlike solitaire rules for moving cards. 2011-06-01 02:18:59 -03:00
Murilo Pereira
69d3647dae Do not segfault when moving from/to the invalid spot. 2011-06-01 01:08:32 -03:00
Murilo Pereira
7c28c40ec3 Move cursor down when moving cards to maneuvre stacks. 2011-06-01 00:47:58 -03:00
Murilo Pereira
36bc8e7d8e Fixed ESC pressing while holding a card. 2011-05-31 22:43:22 -03:00
Murilo Pereira
0739b171c1 Removing stupid hack. 2011-05-31 22:39:28 -03:00
Murilo Pereira
0a100a7b6a Revert "Oops. cursors showing up again."
This reverts commit 9636828ba5.
2011-05-31 22:37:07 -03:00
Murilo Pereira
9636828ba5 Oops. cursors showing up again. 2011-05-31 16:17:26 -03:00
Murilo Pereira
8d3e667e86 Actually run it. 2011-05-31 03:52:03 -03:00
Murilo Pereira
e4c342cc12 Ignore the binaries. 2011-05-31 03:40:29 -03:00
Murilo Pereira
ae5ccc75cb Fixed screen flicker on cursor movement. 2011-05-31 03:31:36 -03:00
Murilo Pereira
1c63b767f6 C-ifying project. 2011-05-31 03:03:13 -03:00
Murilo Pereira
57a38c7152 Fixed card moving issue. Fixes #1. 2011-05-31 02:51:17 -03:00
Murilo Pereira
1b6d79b26c More thorough test for this scenario. 2011-05-31 02:46:43 -03:00
Murilo Pereira
aa7accb3f1 Added escape key. 2011-05-31 02:45:49 -03:00
Murilo Pereira
7262ac588f Fixed memory leak. 2011-05-31 02:45:11 -03:00
Murilo Pereira
e5e94cc841 Removing unnecessary indirection. 2011-05-31 02:44:16 -03:00
Murilo Pereira
79f5a34a06 cursor->marked. 2011-05-31 02:43:32 -03:00
Murilo Pereira
137bb109d6 set_escdelay(0). 2011-05-31 02:42:45 -03:00
Murilo Pereira
c545fe025e return()s. 2011-05-29 17:34:59 -03:00
Murilo Pereira
25ac37a219 Array for maneuvre and foundation stacks. 2011-05-29 17:12:52 -03:00
Murilo Pereira
b94ea8797a Make stack#pop return a card and don't duplicate stuff on push/pop. 2011-05-29 15:19:00 -03:00
Murilo Pereira
6282cf8ee2 Saving 104 bytes. 2011-05-28 00:45:30 -03:00
Murilo Pereira
52e396a9df Updated github username. 2011-05-26 18:26:30 -03:00
Murilo Pereira
f4e9a10572 Smarter stack erasing. 2011-05-15 20:39:22 -03:00
Murilo Pereira
18a78c9713 Add cursor#free_cursor prototype. 2011-05-15 15:03:24 -03:00
Murilo Pereira
ce99997280 Traverse the stack's cards and paint their backgrounds. 2011-05-15 15:02:34 -03:00
Murilo Pereira
6a08aad3d3 Give cursor its own WINDOW. 2011-05-09 02:04:38 -03:00
Murilo Pereira
e70a87feac Removing evolutionary artifact. 2011-05-09 01:11:15 -03:00
Murilo Pereira
d2950f95ce s/shape/window 2011-05-09 00:50:56 -03:00
Murilo Pereira
9ecf0acec8 s/start/begin 2011-05-09 00:38:31 -03:00
Murilo Pereira
539c0ecb00 Conciseness. 2011-05-09 00:04:03 -03:00
Murilo Pereira
3d421f31d3 s/util/curses. 2011-05-08 20:38:36 -03:00
Murilo Pereira
4802244efa Less mental retardation. 2011-05-08 20:20:22 -03:00
Murilo Pereira
ea9ff3cfb5 No return on end of void functions. 2011-05-08 16:58:18 -03:00
Murilo Pereira
f86f3357ae This behaviour was moved to display#draw_stack. 2011-05-08 16:49:16 -03:00
Murilo Pereira
e2554f181e Empty stacks drawn jit. 2011-05-08 15:17:16 -03:00
Murilo Pereira
22aa293645 Meh. 2011-05-08 01:29:16 -03:00
Murilo Pereira
f48a3cee38 Better style for stack#free_stack. 2011-05-08 01:22:26 -03:00
Murilo Pereira
e7706dfa4b Implemented game#valid_move. 2011-05-07 23:09:39 -03:00
Murilo Pereira
854184c2fd stack#push and stack#pop less destructive. 2011-05-01 05:36:46 -03:00
Murilo Pereira
5d96d20893 Move dup functions to lib. 2011-05-01 03:06:43 -03:00
Murilo Pereira
20d68a6f3d Only traverse maneuvre stacks for drawing. 2011-05-01 02:05:35 -03:00