User Tools

Site Tools


notes:data:fall2023:projects:cgf2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:data:fall2023:projects:cgf2 [2023/10/26 20:05] – [foundations] wgates1notes:data:fall2023:projects:cgf2 [2023/11/01 15:17] (current) – [pop] jwieland
Line 50: Line 50:
     card->next->prev = card->prev;     card->next->prev = card->prev;
     card->prev->next = card->next;     card->prev->next = card->next;
-    s->size--; +    if(s->size!=0){ 
 +      s->size--; 
 +    }
 } }
 </code> </code>
Line 66: Line 67:
 At the start of the game, all the foundations are empty. To win Freecell, all four foundations must be filled up with the entire deck of cards. At the start of the game, all the foundations are empty. To win Freecell, all four foundations must be filled up with the entire deck of cards.
  
 +===Foundation logic===
 To accomplish this functionality you can create the following bool function: To accomplish this functionality you can create the following bool function:
  
notes/data/fall2023/projects/cgf2.1698350712.txt.gz · Last modified: 2023/10/26 20:05 by wgates1