Commit Graph

  • 0a37b5982a Really, don't change the stack when calling stack#reverse. Murilo Pereira 2011-05-01 02:04:16 -03:00
  • 0e0c44f5c6 Non-destructive stack#reverse. Murilo Pereira 2011-05-01 01:13:15 -03:00
  • 5a62ecb955 Added stack#reverse. Murilo Pereira 2011-04-30 22:13:41 -03:00
  • 9ed28d9d51 Added instructions. Murilo Pereira 2011-04-30 17:40:22 -03:00
  • b118024237 Updated homepage link. Murilo Pereira 2011-03-06 23:52:45 -03:00
  • dcab55f853 Finished putting stuff where they belong. Murilo Pereira 2011-02-20 18:45:15 -03:00
  • 276a4137bc Wtf was that. Murilo Pereira 2011-02-20 18:37:20 -03:00
  • daf0b4809f Putting functions were they belong. Murilo Pereira 2011-02-16 23:50:29 -02:00
  • 3420045a35 Refactored 'length(stack)' and added test. Murilo Pereira 2011-02-16 22:42:49 -02:00
  • b1000cfb55 Moving game logic to the game object. Murilo Pereira 2011-02-16 22:26:18 -02:00
  • 3495e08490 Formatting. Murilo Pereira 2011-02-14 00:24:19 -02:00
  • 417a8ca2b7 s/delete/free/g Murilo Pereira 2011-02-14 00:10:47 -02:00
  • e59d089b45 Remove noob code. Murilo Pereira 2011-02-14 00:05:54 -02:00
  • 6c5970da62 Delete the whole linked list (omg noob?). Murilo Pereira 2011-02-14 00:04:26 -02:00
  • c6ac149dde 'duplicate_stack(stack)' was returning reversed stacks. Murilo Pereira 2011-02-13 23:43:58 -02:00
  • 777434177f Added tests for the stack and made them pass. Murilo Pereira 2011-02-13 23:13:00 -02:00
  • 02e9e0a04f Formatting. Murilo Pereira 2011-02-13 19:40:29 -02:00
  • dea468e8be No need for stdbool.h. Murilo Pereira 2011-02-13 19:37:50 -02:00
  • 422a866e10 Added helper functions for the unit tests. Murilo Pereira 2011-02-13 17:12:45 -02:00
  • 259f0dc536 Tell people this isn't ready. Murilo Pereira 2011-02-12 16:47:12 -02:00
  • 8445bd1a5e Free frames after assertions. Murilo Pereira 2011-02-12 16:30:33 -02:00
  • 9821a5265a Added unit tests for the card object. Murilo Pereira 2011-02-12 16:28:58 -02:00
  • e2f50b183a One assert per expectation makes better error messages. Murilo Pereira 2011-02-12 16:00:23 -02:00
  • cdbb86e331 Only test my code. Murilo Pereira 2011-02-12 15:58:24 -02:00
  • 8c02e908db Typos. Murilo Pereira 2011-02-12 14:54:50 -02:00
  • ae1c50be93 Rename header and remove unnecessary function call. Murilo Pereira 2011-02-12 13:56:31 -02:00
  • 60641ca499 Avoid dereferencing NULL pointers. Murilo Pereira 2011-02-12 01:26:03 -02:00
  • 97c69bdcba Compile with debug symbols. Murilo Pereira 2011-02-12 01:24:49 -02:00
  • ddeb3d335f Removed noob debugging. Murilo Pereira 2011-02-11 23:58:01 -02:00
  • e8cf7b92a0 This is better here. Murilo Pereira 2011-02-09 23:51:07 -02:00
  • f28c1ce6fd Free structures after ending ncurses. Murilo Pereira 2011-02-09 23:50:24 -02:00
  • 578fe9af27 Fixing gay formatting. Murilo Pereira 2011-02-09 23:25:28 -02:00
  • 3ff7023b9d Include header. Murilo Pereira 2011-02-09 23:13:44 -02:00
  • 798e71f430 Revised README. Murilo Pereira 2011-02-06 23:55:59 -02:00
  • a28f2a3fe8 Ignore objects from all directories. Murilo Pereira 2011-02-06 23:34:57 -02:00
  • fcece2b7ac Add initial unit tests. Murilo Pereira 2011-02-06 23:31:55 -02:00
  • 1b1481b0a4 Add the regular objects as a dependency for the tests. Murilo Pereira 2011-02-06 23:26:04 -02:00
  • 64a278ca99 Makefile refactoring and introducing the 'test' rule. Murilo Pereira 2011-02-06 21:28:11 -02:00
  • 0019ad647b Not using this function. Murilo Pereira 2011-02-06 21:27:39 -02:00
  • 8d1b2ca7b4 Declaring local functions as static. Murilo Pereira 2011-02-06 04:45:53 -02:00
  • 83df7ba92f Removing useless method and expliciting headers. Murilo Pereira 2011-02-06 04:39:13 -02:00
  • a5ee9230df 'puts' uses stdio.h. Murilo Pereira 2011-02-06 04:33:59 -02:00
  • fc82c70b6a Fixing indendation for 'switch'es. Murilo Pereira 2011-02-06 04:14:17 -02:00
  • 2a9d38116f Declaring headers explicitly. Murilo Pereira 2011-02-06 04:10:54 -02:00
  • 56ab3aedb1 Constants are not used in the header. Murilo Pereira 2011-02-06 04:06:54 -02:00
  • 5adba921f9 Moving stack-related constants to the stack header file. Murilo Pereira 2011-02-06 04:03:40 -02:00
  • 75d1e5f23b Pessimistic memory allocation. Murilo Pereira 2011-02-06 03:44:45 -02:00
  • d1a7d6fc24 Ignore TODO. Murilo Pereira 2011-02-06 00:45:46 -02:00
  • dc6319ecf2 This name makes more sense. Murilo Pereira 2011-02-06 00:45:24 -02:00
  • a12a972daa Clearing build warnings. Murilo Pereira 2011-02-06 00:36:35 -02:00
  • 196a11d1fe Moving responsibility off from main file. Murilo Pereira 2011-02-06 00:32:21 -02:00
  • 8bd7147a8e 'draw_deck' is more consistent. Murilo Pereira 2011-02-06 00:22:16 -02:00
  • a8c98d4756 Moving cursor declaration to the game file. Murilo Pereira 2011-02-06 00:15:21 -02:00
  • 58fff35a20 WIP. Murilo Pereira 2011-02-05 23:42:14 -02:00
  • 6545b996f2 Updating the debug branch's Makefile. Murilo Soares Pereira 2010-04-20 14:30:24 -03:00
  • f7ee503596 The 'six' card was being print wrong. Murilo Soares Pereira 2010-04-11 17:13:06 -03:00
  • 459dc12549 The 'width' and 'height' fields don't exist anymore. Murilo Soares Pereira 2010-04-10 14:40:37 -03:00
  • 121e49e2b7 Inform what stack we're printing. Murilo Soares Pereira 2010-04-10 13:59:04 -03:00
  • aca1ceffe7 Fixed failing build. Murilo Soares Pereira 2010-04-10 13:55:29 -03:00
  • dc0ca7c4ca Debug rather than test on everything. Murilo Soares Pereira 2010-04-10 13:49:19 -03:00
  • b754c0a71e Added the a debug function to print the values of the structures. Murilo Soares Pereira 2010-04-10 13:39:22 -03:00
  • 7558551ac1 Ignore the debug objects. Murilo Soares Pereira 2010-04-10 13:35:45 -03:00
  • 2c06189b6c Added the initial test files. Murilo Soares Pereira 2010-04-10 12:52:08 -03:00
  • 202b316719 Moving cards through stacks. Murilo Soares Pereira 2010-04-22 01:50:19 -03:00
  • 7b39ec5cc6 Erasing stacks when empty. Also moved some event-related code to the keyboard object. Murilo Soares Pereira 2010-04-21 04:14:39 -03:00
  • 87909b5075 Passing cards from the stock to the waste pile. Murilo Soares Pereira 2010-04-20 14:11:16 -03:00
  • ee3daeb30a Suit symbols work on all terminals now. Murilo Soares Pereira 2010-04-20 02:10:03 -03:00
  • 4c9336f944 Created the cursor object, and it moves! Murilo Soares Pereira 2010-04-20 01:10:42 -03:00
  • ebe1be2d55 Added the cursor object as a dependency. Murilo Soares Pereira 2010-04-20 01:01:39 -03:00
  • a7bcc8e5a7 Making room for cursor, DRY'ing up code. Murilo Soares Pereira 2010-04-19 21:58:31 -03:00
  • 67f4775dc4 Broke some functions into smaller pieces, added the initial keyboard interface. Murilo Soares Pereira 2010-04-13 01:07:00 -03:00
  • 82d9ee9cb4 Added the keyboard object as a dependency. Murilo Soares Pereira 2010-04-13 01:05:05 -03:00
  • e65e4e2875 Moved code into 'game' and 'util', removed unnecessary headers. Murilo Soares Pereira 2010-04-12 23:42:21 -03:00
  • 9459fc8242 Added new object dependencies and titleized the makefile. Murilo Soares Pereira 2010-04-12 23:14:39 -03:00
  • 9da78ff96c Renamed license. Murilo Soares Pereira 2010-04-12 20:43:45 -03:00
  • ed52f72ff0 Fixed functions to initialize the game and now initializing it from main. Murilo Soares Pereira 2010-04-12 02:56:28 -03:00
  • 73d79dcc92 Hack to print the '10' card value correctly. Murilo Soares Pereira 2010-04-11 20:11:40 -03:00
  • 5d7bb4bcb3 Draw the first card of the stack above all others. Murilo Soares Pereira 2010-04-11 19:43:41 -03:00
  • 45b7939665 Moves to maneuvre stack must consider when it isn't empty, also. Murilo Soares Pereira 2010-04-11 18:22:13 -03:00
  • 3100da49d6 Green background and invisible cursor. Murilo Soares Pereira 2010-04-11 18:08:11 -03:00
  • 6e802c682f Removed references to debug. Murilo Soares Pereira 2010-04-11 17:18:38 -03:00
  • 714f537c72 The 'height' and 'width' fields aren't necessary. Murilo Soares Pereira 2010-04-10 14:37:43 -03:00
  • 2cd63146ca Added function to deal the cards when the game starts. Murilo Soares Pereira 2010-04-10 00:56:44 -03:00
  • d7f349a82c Added functions to cover and expose cards. Murilo Soares Pereira 2010-04-10 00:45:54 -03:00
  • 0c798f3d56 When a card is moved between stacks, its coordinates are refreshed. Murilo Soares Pereira 2010-04-10 00:32:25 -03:00
  • 65a8b5e0e3 Added functions to draw the game's cards. Murilo Soares Pereira 2010-04-11 17:11:45 -03:00
  • d47406f1e4 Added function to set the initial deck's stacks coordinates on screen. Murilo Soares Pereira 2010-04-09 01:41:38 -03:00
  • 7c30e006b6 Fixed the function that checks if a given stack is empty. Murilo Soares Pereira 2010-04-09 01:23:10 -03:00
  • 18d6f6e0d8 Added card's stacks coordinates. Murilo Soares Pereira 2010-04-09 00:58:30 -03:00
  • 18cf795914 Added function to move cards between stacks. Murilo Soares Pereira 2010-04-09 00:49:17 -03:00
  • c744581711 The stack initializer now initializes its card also. Murilo Soares Pereira 2010-04-09 00:37:57 -03:00
  • db469c318d Added waste pile structure. Murilo Soares Pereira 2010-04-09 00:12:06 -03:00
  • e6a8651fb2 Implemented function to shuffle the deck. Murilo Soares Pereira 2010-04-08 22:33:26 -03:00
  • b94341b70d Added function to fill the deck. Murilo Soares Pereira 2010-04-06 22:52:00 -03:00
  • 90c7ce6280 delete() for all structures. Murilo Soares Pereira 2010-04-06 21:59:21 -03:00
  • ecaa2a4c68 Created the 'deck' structure, allocate() and initialize() for all structures. Murilo Soares Pereira 2010-04-05 04:33:10 -03:00
  • 7e47ca3ccf Added the deck object as a dependency. Murilo Soares Pereira 2010-04-05 01:26:23 -03:00
  • 11323275a1 Deallocating the empty stack's WINDOWs. Murilo Soares Pereira 2010-04-04 22:54:07 -03:00
  • c4c129d115 Drawning the initial empty stacks to the screen. Murilo Soares Pereira 2010-04-04 22:48:55 -03:00
  • 3889a40850 Fixing header's dependencies. Murilo Soares Pereira 2010-04-04 21:54:22 -03:00