hw1 - Focus File I/O Structs Functions and parameter...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Focus File I/O Structs Functions and parameter passing. Problem: Make a game of Solitaire. Details You will set up a hand of Solitaire and display it. You are not going to make a working game for this assignment. You will need to represent the cards, a deck of cards, the seven piles in which the cards are laid out, the four "stacks" where you put the cards starting with Ace, two, etc. and finally a game , which consists of all these things together with where in the deck the play may be at any point. You will need to read the cards in from a file called "cards.txt". . There may be more than one deck of cards in the file. Each deck will consist of 52 different cards. If there are two decks in the file then there will be 104 cards, etc. For each deck that you read, you will lay the cards out according to the rules of Solitaire. (Anyone have a link to the rules?) After you lay them out, you will display the cards as they are laid out. Note, you do not have to actually make your program play the game, but your representation
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

hw1 - Focus File I/O Structs Functions and parameter...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online