Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							9da78ff96c
							
						
					 | 
					
						
						
							
							Renamed license.
						
						
						
						
						
						
					 | 
					
						2010-04-12 20:43:45 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							ed52f72ff0
							
						
					 | 
					
						
						
							
							Fixed functions to initialize the game and now initializing it from main.
						
						
						
						
						
						
					 | 
					
						2010-04-12 02:56:28 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							73d79dcc92
							
						
					 | 
					
						
						
							
							Hack to print the '10' card value correctly.
						
						
						
						
						
						
					 | 
					
						2010-04-11 20:11:40 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							5d7bb4bcb3
							
						
					 | 
					
						
						
							
							Draw the first card of the stack above all others.
						
						
						
						
						
						
					 | 
					
						2010-04-11 19:43:41 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							45b7939665
							
						
					 | 
					
						
						
							
							Moves to maneuvre stack must consider when it isn't empty, also.
						
						
						
						
						
						
					 | 
					
						2010-04-11 18:22:13 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							3100da49d6
							
						
					 | 
					
						
						
							
							Green background and invisible cursor.
						
						
						
						
						
						
					 | 
					
						2010-04-11 18:14:11 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							6e802c682f
							
						
					 | 
					
						
						
							
							Removed references to debug.
						
						
						
						
						
						
					 | 
					
						2010-04-11 17:18:38 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							714f537c72
							
						
					 | 
					
						
						
							
							The 'height' and 'width' fields aren't necessary.
						
						
						
						
						
						
					 | 
					
						2010-04-11 17:15:36 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							2cd63146ca
							
						
					 | 
					
						
						
							
							Added function to deal the cards when the game starts.
						
						
						
						
						
						
					 | 
					
						2010-04-11 17:15:35 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							d7f349a82c
							
						
					 | 
					
						
						
							
							Added functions to cover and expose cards.
						
						
						
						
						
						
					 | 
					
						2010-04-11 17:15:34 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							0c798f3d56
							
						
					 | 
					
						
						
							
							When a card is moved between stacks, its coordinates are refreshed.
						
						
						
						
						
						
					 | 
					
						2010-04-11 17:15:33 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							65a8b5e0e3
							
						
					 | 
					
						
						
							
							Added functions to draw the game's cards.
						
						
						
						
						
						
					 | 
					
						2010-04-11 17:14:53 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							d47406f1e4
							
						
					 | 
					
						
						
							
							Added function to set the initial deck's stacks coordinates on screen.
						
						
						
						
						
						
					 | 
					
						2010-04-09 01:41:38 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							7c30e006b6
							
						
					 | 
					
						
						
							
							Fixed the function that checks if a given stack is empty.
						
						
						
						
						
						
					 | 
					
						2010-04-09 01:23:10 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							18d6f6e0d8
							
						
					 | 
					
						
						
							
							Added card's stacks coordinates.
						
						
						
						
						
						
					 | 
					
						2010-04-09 00:58:30 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							18cf795914
							
						
					 | 
					
						
						
							
							Added function to move cards between stacks.
						
						
						
						
						
						
					 | 
					
						2010-04-09 00:49:17 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							c744581711
							
						
					 | 
					
						
						
							
							The stack initializer now initializes its card also.
						
						
						
						
						
						
					 | 
					
						2010-04-09 00:37:57 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							db469c318d
							
						
					 | 
					
						
						
							
							Added waste pile structure.
						
						
						
						
						
						
					 | 
					
						2010-04-09 00:12:06 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							e6a8651fb2
							
						
					 | 
					
						
						
							
							Implemented function to shuffle the deck.
						
						
						
						
						
						
					 | 
					
						2010-04-08 22:33:26 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							b94341b70d
							
						
					 | 
					
						
						
							
							Added function to fill the deck.
						
						
						
						
						
						
					 | 
					
						2010-04-08 01:11:11 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							90c7ce6280
							
						
					 | 
					
						
						
							
							delete() for all structures.
						
						
						
						
						
						
					 | 
					
						2010-04-08 01:11:10 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							ecaa2a4c68
							
						
					 | 
					
						
						
							
							Created the 'deck' structure, allocate() and initialize() for all structures.
						
						
						
						
						
						
					 | 
					
						2010-04-08 01:11:10 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							7e47ca3ccf
							
						
					 | 
					
						
						
							
							Added the deck object as a dependency.
						
						
						
						
						
						
					 | 
					
						2010-04-05 01:26:23 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							11323275a1
							
						
					 | 
					
						
						
							
							Deallocating the empty stack's WINDOWs.
						
						
						
						
						
						
					 | 
					
						2010-04-04 22:54:07 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							c4c129d115
							
						
					 | 
					
						
						
							
							Drawning the initial empty stacks to the screen.
						
						
						
						
						
						
					 | 
					
						2010-04-04 22:48:55 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							3889a40850
							
						
					 | 
					
						
						
							
							Fixing header's dependencies.
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:54:22 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							f01a7c236c
							
						
					 | 
					
						
						
							
							display.h now includes the card header.
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:44:31 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							094fff00f0
							
						
					 | 
					
						
						
							
							initialize_frame() isn't needed, newwin() takes care of it.
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:20:39 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							8173aaa7ff
							
						
					 | 
					
						
						
							
							Fixed empty() to use the new initialize_stack(), and pop().
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:20:38 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							e72d21f1f0
							
						
					 | 
					
						
						
							
							Fixed malloc() and pop().
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:20:38 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							ad737aa765
							
						
					 | 
					
						
						
							
							Fixed push().
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:20:38 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							84383a3275
							
						
					 | 
					
						
						
							
							Fixed length().
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:20:38 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							f0aa621e69
							
						
					 | 
					
						
						
							
							Added pop() and function prototypes.
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:20:37 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							1c65ae3672
							
						
					 | 
					
						
						
							
							Added the stack object to the dependencies.
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:20:37 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							4bb10a54cc
							
						
					 | 
					
						
						
							
							Added stack files, with push().
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:20:36 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							be38f63822
							
						
					 | 
					
						
						
							
							Wiped common.h out of existence.
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:19:32 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							155e03e42c
							
						
					 | 
					
						
						
							
							We need to malloc() the size of the structure, not the pointer.
						
						
						
						
						
						
					 | 
					
						2010-04-04 21:00:36 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							abca15d2be
							
						
					 | 
					
						
						
							
							common.h isn't needed on card.c.
						
						
						
						
						
						
					 | 
					
						2010-04-03 20:52:10 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							593d048e88
							
						
					 | 
					
						
						
							
							Added MIT license.
						
						
						
						
						
						
					 | 
					
						2010-04-03 19:55:58 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							513d8308d0
							
						
					 | 
					
						
						
							
							Added initial draw functions.
						
						
						
						
						
						
					 | 
					
						2010-04-03 16:34:45 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							c4ce09551e
							
						
					 | 
					
						
						
							
							Adding card_value().
						
						
						
						
						
						
					 | 
					
						2010-04-03 15:49:57 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							a51e1c8b79
							
						
					 | 
					
						
						
							
							Adding init_curses()' prototype.
						
						
						
						
						
						
					 | 
					
						2010-04-03 15:48:02 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							1910bfe868
							
						
					 | 
					
						
						
							
							Moved curses initialization related stuff to display.c.
						
						
						
						
						
						
					 | 
					
						2010-04-03 15:26:21 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							042b45f36a
							
						
					 | 
					
						
						
							
							Forgot switch's breaks.
						
						
						
						
						
						
					 | 
					
						2010-04-03 15:24:10 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							0ea190c39f
							
						
					 | 
					
						
						
							
							Added initial display code.
						
						
						
						
						
						
					 | 
					
						2010-04-03 04:11:27 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							e7763f86c2
							
						
					 | 
					
						
						
							
							Adding the display object to the dependencies.
						
						
						
						
						
						
					 | 
					
						2010-04-03 01:27:52 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							8960ae7f84
							
						
					 | 
					
						
						
							
							Removed GUI related code from card code.
						
						
						
						
						
						
					 | 
					
						2010-04-03 01:22:13 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							7c4c16e705
							
						
					 | 
					
						
						
							
							Adding the locale, so that unicode characters are shown.
						
						
						
						
						
						
					 | 
					
						2010-04-03 00:32:19 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							d8d42c42b2
							
						
					 | 
					
						
						
							
							delwin() rather than free() on WINDOWs.
						
						
						
						
						
						
					 | 
					
						2010-04-01 11:14:11 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							adac388f03
							
						
					 | 
					
						
						
							
							Fixed struct card's face type.
						
						
						
						
						
						
					 | 
					
						2010-04-01 10:18:57 -03:00 | 
					
					
						
						
							
							
							
						
					 |