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 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							aca1ceffe7
							
						
					 | 
					
						
						
							
							Fixed failing build.
						
						
						
						
						
						
					 | 
					
						2010-04-22 01:52:06 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							dc0ca7c4ca
							
						
					 | 
					
						
						
							
							Debug rather than test on everything.
						
						
						
						
						
						
					 | 
					
						2010-04-22 01:51:51 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							b754c0a71e
							
						
					 | 
					
						
						
							
							Added the a debug function to print the values of the structures.
						
						
						
						
						
						
					 | 
					
						2010-04-22 01:51:27 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							7558551ac1
							
						
					 | 
					
						
						
							
							Ignore the debug objects.
						
						
						
						
						
						
					 | 
					
						2010-04-22 01:51:10 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							2c06189b6c
							
						
					 | 
					
						
						
							
							Added the initial test files.
						
						
						
						
						
						
					 | 
					
						2010-04-22 01:50:32 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							202b316719
							
						
					 | 
					
						
						
							
							Moving cards through stacks.
						
						
						
						
						
						
					 | 
					
						2010-04-22 01:50:19 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							7b39ec5cc6
							
						
					 | 
					
						
						
							
							Erasing stacks when empty. Also moved some event-related code to the keyboard object.
						
						
						
						
						
						
					 | 
					
						2010-04-21 04:14:39 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							87909b5075
							
						
					 | 
					
						
						
							
							Passing cards from the stock to the waste pile.
						
						
						
						
						
						
					 | 
					
						2010-04-20 14:11:16 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							ee3daeb30a
							
						
					 | 
					
						
						
							
							Suit symbols work on all terminals now.
						
						
						
						
						
						
					 | 
					
						2010-04-20 02:10:03 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							4c9336f944
							
						
					 | 
					
						
						
							
							Created the cursor object, and it moves!
						
						
						
						
						
						
					 | 
					
						2010-04-20 01:11:42 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							ebe1be2d55
							
						
					 | 
					
						
						
							
							Added the cursor object as a dependency.
						
						
						
						
						
						
					 | 
					
						2010-04-20 01:01:39 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							a7bcc8e5a7
							
						
					 | 
					
						
						
							
							Making room for cursor, DRY'ing up code.
						
						
						
						
						
						
					 | 
					
						2010-04-19 21:58:31 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							67f4775dc4
							
						
					 | 
					
						
						
							
							Broke some functions into smaller pieces, added the initial keyboard interface.
						
						
						
						
						
						
					 | 
					
						2010-04-13 01:07:06 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							82d9ee9cb4
							
						
					 | 
					
						
						
							
							Added the keyboard object as a dependency.
						
						
						
						
						
						
					 | 
					
						2010-04-13 01:05:05 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							e65e4e2875
							
						
					 | 
					
						
						
							
							Moved code into 'game' and 'util', removed unnecessary headers.
						
						
						
						
						
						
					 | 
					
						2010-04-12 23:42:21 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Murilo Soares Pereira
							
						 
					 | 
					
						
						
						
						
							
						
						
							9459fc8242
							
						
					 | 
					
						
						
							
							Added new object dependencies and titleized the makefile.
						
						
						
						
						
						
					 | 
					
						2010-04-12 23:14:39 -03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								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 | 
					
					
						
						
							
							
							
						
					 |