Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							3420045a35 
							
						 
					 
					
						
						
							
							Refactored 'length(stack)' and added test.  
						
						
						
						
					 
					
						2011-02-16 22:42:49 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							b1000cfb55 
							
						 
					 
					
						
						
							
							Moving game logic to the game object.  
						
						
						
						
					 
					
						2011-02-16 22:27:00 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							3495e08490 
							
						 
					 
					
						
						
							
							Formatting.  
						
						
						
						
					 
					
						2011-02-14 00:24:19 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							417a8ca2b7 
							
						 
					 
					
						
						
							
							s/delete/free/g  
						
						
						
						
					 
					
						2011-02-14 00:10:47 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							e59d089b45 
							
						 
					 
					
						
						
							
							Remove noob code.  
						
						
						
						
					 
					
						2011-02-14 00:05:59 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							6c5970da62 
							
						 
					 
					
						
						
							
							Delete the whole linked list (omg noob?).  
						
						
						
						
					 
					
						2011-02-14 00:04:26 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							c6ac149dde 
							
						 
					 
					
						
						
							
							'duplicate_stack(stack)' was returning reversed stacks.  
						
						
						
						
					 
					
						2011-02-13 23:43:58 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							777434177f 
							
						 
					 
					
						
						
							
							Added tests for the stack and made them pass.  
						
						... 
						
						
						
						* Make 'empty(stack)' more robust
* Only try to 'push(stack, card)' if card != NULL
* Added message explaining why 'pop(stack)' needs to create a new
  stack object when popping a stack's last element
* 'move_card(stack, stack)' now checks if the origin pops something
   before trying to 'push(stack)' to destination. This prevents
   dereferencing a possible NULL pointer. 
						
						
					 
					
						2011-02-13 23:13:16 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							02e9e0a04f 
							
						 
					 
					
						
						
							
							Formatting.  
						
						
						
						
					 
					
						2011-02-13 19:40:29 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							dea468e8be 
							
						 
					 
					
						
						
							
							No need for stdbool.h.  
						
						
						
						
					 
					
						2011-02-13 19:37:50 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							422a866e10 
							
						 
					 
					
						
						
							
							Added helper functions for the unit tests.  
						
						... 
						
						
						
						* Also added tests for the helper functions 
						
						
					 
					
						2011-02-13 19:35:40 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							259f0dc536 
							
						 
					 
					
						
						
							
							Tell people this isn't ready.  
						
						
						
						
					 
					
						2011-02-12 16:47:12 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							8445bd1a5e 
							
						 
					 
					
						
						
							
							Free frames after assertions.  
						
						
						
						
					 
					
						2011-02-12 16:30:33 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							9821a5265a 
							
						 
					 
					
						
						
							
							Added unit tests for the card object.  
						
						
						
						
					 
					
						2011-02-12 16:28:58 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							e2f50b183a 
							
						 
					 
					
						
						
							
							One assert per expectation makes better error messages.  
						
						
						
						
					 
					
						2011-02-12 16:00:23 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							cdbb86e331 
							
						 
					 
					
						
						
							
							Only test my code.  
						
						
						
						
					 
					
						2011-02-12 15:58:24 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							8c02e908db 
							
						 
					 
					
						
						
							
							Typos.  
						
						
						
						
					 
					
						2011-02-12 14:54:50 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							ae1c50be93 
							
						 
					 
					
						
						
							
							Rename header and remove unnecessary function call.  
						
						
						
						
					 
					
						2011-02-12 13:56:31 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							60641ca499 
							
						 
					 
					
						
						
							
							Avoid dereferencing NULL pointers.  
						
						
						
						
					 
					
						2011-02-12 01:26:03 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							97c69bdcba 
							
						 
					 
					
						
						
							
							Compile with debug symbols.  
						
						
						
						
					 
					
						2011-02-12 01:24:49 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							ddeb3d335f 
							
						 
					 
					
						
						
							
							Removed noob debugging.  
						
						
						
						
					 
					
						2011-02-11 23:58:01 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							e8cf7b92a0 
							
						 
					 
					
						
						
							
							This is better here.  
						
						
						
						
					 
					
						2011-02-09 23:51:07 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							f28c1ce6fd 
							
						 
					 
					
						
						
							
							Free structures after ending ncurses.  
						
						
						
						
					 
					
						2011-02-09 23:50:24 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							578fe9af27 
							
						 
					 
					
						
						
							
							Fixing gay formatting.  
						
						
						
						
					 
					
						2011-02-09 23:25:28 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							3ff7023b9d 
							
						 
					 
					
						
						
							
							Include header.  
						
						
						
						
					 
					
						2011-02-09 23:13:44 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							798e71f430 
							
						 
					 
					
						
						
							
							Revised README.  
						
						
						
						
					 
					
						2011-02-06 23:55:59 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							a28f2a3fe8 
							
						 
					 
					
						
						
							
							Ignore objects from all directories.  
						
						
						
						
					 
					
						2011-02-06 23:34:57 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							fcece2b7ac 
							
						 
					 
					
						
						
							
							Add initial unit tests.  
						
						
						
						
					 
					
						2011-02-06 23:33:44 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							1b1481b0a4 
							
						 
					 
					
						
						
							
							Add the regular objects as a dependency for the tests.  
						
						... 
						
						
						
						* Also execute the 'test' rule silently 
						
						
					 
					
						2011-02-06 23:26:06 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							64a278ca99 
							
						 
					 
					
						
						
							
							Makefile refactoring and introducing the 'test' rule.  
						
						... 
						
						
						
						* Moved the main source file to the lib directory
* ttysolitaire rather than tty-solitaire 
						
						
					 
					
						2011-02-06 21:41:06 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							0019ad647b 
							
						 
					 
					
						
						
							
							Not using this function.  
						
						
						
						
					 
					
						2011-02-06 21:27:39 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							8d1b2ca7b4 
							
						 
					 
					
						
						
							
							Declaring local functions as static.  
						
						
						
						
					 
					
						2011-02-06 04:51:49 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							83df7ba92f 
							
						 
					 
					
						
						
							
							Removing useless method and expliciting headers.  
						
						
						
						
					 
					
						2011-02-06 04:42:52 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							a5ee9230df 
							
						 
					 
					
						
						
							
							'puts' uses stdio.h.  
						
						
						
						
					 
					
						2011-02-06 04:33:59 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							fc82c70b6a 
							
						 
					 
					
						
						
							
							Fixing indendation for 'switch'es.  
						
						
						
						
					 
					
						2011-02-06 04:14:17 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							2a9d38116f 
							
						 
					 
					
						
						
							
							Declaring headers explicitly.  
						
						
						
						
					 
					
						2011-02-06 04:10:54 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							56ab3aedb1 
							
						 
					 
					
						
						
							
							Constants are not used in the header.  
						
						
						
						
					 
					
						2011-02-06 04:06:54 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							5adba921f9 
							
						 
					 
					
						
						
							
							Moving stack-related constants to the stack header file.  
						
						
						
						
					 
					
						2011-02-06 04:03:40 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							75d1e5f23b 
							
						 
					 
					
						
						
							
							Pessimistic memory allocation.  
						
						... 
						
						
						
						* Added/removed headers as necessary
* Removed 'key_event' function from keyboard 
						
						
					 
					
						2011-02-06 03:45:58 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							d1a7d6fc24 
							
						 
					 
					
						
						
							
							Ignore TODO.  
						
						
						
						
					 
					
						2011-02-06 00:47:27 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							dc6319ecf2 
							
						 
					 
					
						
						
							
							This name makes more sense.  
						
						
						
						
					 
					
						2011-02-06 00:47:27 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							a12a972daa 
							
						 
					 
					
						
						
							
							Clearing build warnings.  
						
						
						
						
					 
					
						2011-02-06 00:47:27 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							196a11d1fe 
							
						 
					 
					
						
						
							
							Moving responsibility off from main file.  
						
						
						
						
					 
					
						2011-02-06 00:47:27 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							8bd7147a8e 
							
						 
					 
					
						
						
							
							'draw_deck' is more consistent.  
						
						
						
						
					 
					
						2011-02-06 00:47:27 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							a8c98d4756 
							
						 
					 
					
						
						
							
							Moving cursor declaration to the game file.  
						
						... 
						
						
						
						* Also moving some functions around. 
						
						
					 
					
						2011-02-06 00:47:27 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							58fff35a20 
							
						 
					 
					
						
						
							
							WIP.  
						
						
						
						
					 
					
						2011-02-05 23:42:14 -02:00 
						 
				 
			
				
					
						
							
							
								Murilo Soares Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							6545b996f2 
							
						 
					 
					
						
						
							
							Updating the debug branch's Makefile.  
						
						
						
						
					 
					
						2010-04-22 01:52:08 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Soares Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							f7ee503596 
							
						 
					 
					
						
						
							
							The 'six' card was being print wrong.  
						
						
						
						
					 
					
						2010-04-22 01:52:08 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Soares Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							459dc12549 
							
						 
					 
					
						
						
							
							The 'width' and 'height' fields don't exist anymore.  
						
						
						
						
					 
					
						2010-04-22 01:52:08 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Soares Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							121e49e2b7 
							
						 
					 
					
						
						
							
							Inform what stack we're printing.  
						
						
						
						
					 
					
						2010-04-22 01:52:08 -03:00