Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							6282cf8ee2 
							
						 
					 
					
						
						
							
							Saving 104 bytes.  
						
						
						
						
					 
					
						2011-05-28 00:45: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 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							0a37b5982a 
							
						 
					 
					
						
						
							
							Really, don't change the stack when calling stack#reverse.  
						
						
						
						
					 
					
						2011-05-01 02:04:16 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							0e0c44f5c6 
							
						 
					 
					
						
						
							
							Non-destructive stack#reverse.  
						
						
						
						
					 
					
						2011-05-01 01:13:15 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							5a62ecb955 
							
						 
					 
					
						
						
							
							Added stack#reverse.  
						
						
						
						
					 
					
						2011-04-30 22:13:41 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							9ed28d9d51 
							
						 
					 
					
						
						
							
							Added instructions.  
						
						
						
						
					 
					
						2011-04-30 17:40:22 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							dcab55f853 
							
						 
					 
					
						
						
							
							Finished putting stuff where they belong.  
						
						
						
						
					 
					
						2011-02-20 18:45:15 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							276a4137bc 
							
						 
					 
					
						
						
							
							Wtf was that.  
						
						
						
						
					 
					
						2011-02-20 18:37:20 -03:00 
						 
				 
			
				
					
						
							
							
								Murilo Pereira 
							
						 
					 
					
						
						
						
						
							
						
						
							daf0b4809f 
							
						 
					 
					
						
						
							
							Putting functions were they belong.  
						
						
						
						
					 
					
						2011-02-16 23:50:29 -02:00 
						 
				 
			
				
					
						
							
							
								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 
							
						 
					 
					
						
						
						
						
							
						
						
							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 
							
						 
					 
					
						
						
						
						
							
						
						
							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 
							
						 
					 
					
						
						
						
						
							
						
						
							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 
							
						 
					 
					
						
						
						
						
							
						
						
							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