This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:afassett:free_cell [2010/10/18 23:19] – afassett | user:afassett:free_cell [2010/11/28 04:14] (current) – afassett | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==Files== | ||
+ | main.c //calls functions, user interface made here as well as some of nodemanip.c functions\\ | ||
+ | list.h // | ||
+ | |||
+ | display.c //prints the rows, Has the ability to print all 52 to check if they are non-repeating. cards are not implemented to print suit just #'s so far.\\ | ||
+ | |||
+ | nodemanip.c //makes the linked list, inserts and deletes nodes. Makes the list with random number 0-51\\ | ||
+ | ---- | ||
+ | ==Problems== | ||
+ | Three problems encountered that most difficult during this project\\ | ||
+ | **Random Numbers**\\ | ||
+ | **non-repeating numbers**\\ | ||
+ | **interface**\\ | ||
+ | As you can see non of the problems i had were of making a list linked and having to manipulate nodes such as insert and removing them.\\ | ||
+ | However still have some difficult telling the difference between stack and linked list. Stack-> | ||
+ | I had difficulty making the numbers non-repeating as well as making them into rows. Instead of identifying the cards as they are I made them numbers 0-51, which only until the end when they would be printed would they be convert from numbers to cards. The difficult part of making the numbers non-repeating was checking to see if the number were used before. I tried using array and using pointers, however the pointers made this approach t confusing to remember where i was pointing. In the nodemanip.c it can be seen how this was accomplished, | ||
+ | ==Future Idea== | ||
+ | Much like the command info where a user can simply hit enter to take a action would be a much better interface. Plus with colored background for the hearts and dimmaond suits would be help to the user. | ||
+ | ==Other== | ||
+ | As is the program is in finalproject the numbers are not converted into cards this is because I have not desiced how I want them to look when they print. I have come up with for example when 51 is printed [H,K] meaning ' | ||
+ | ==Versions== | ||
+ | * v1.0 - {{: |