Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 336

# Need to implement a game similar to Solitaire game known as klondike

I am trying to   implement a game known as klondike ,can any one help me out as where can i get the source code for this game .
How to start  coding for this game  .
0
anumit
1 Solution

Data Warehouse Architect / DBACommented:

<Link deleted by sunnycoder, Page Editor>

The name there is "tksol".

Kent
0

Commented:
anumit,

May we know why you need such source code. I have a suspicion that this could be a coursework assignment or project.

sunnycoder
0

Commented:
One way you start coding is the top-down method.  Write out a simple explanation, then elaborate each part into sub-steps.  Repeat until the sub-steps are simple enough that you can translate them into computer statements.  Example:

(1)  Play "klondike"    // I don't know the rules, but here goes....

(2)  Need some variables to hold the cards and players.   Initialize the variables.  Shuffle. Deal the cards.   have each player make a move.  Log the points.  when done, print the totals.

(3)  Okay... We need a deck of cards, maybe an array ?  Shuffleing is something like:  for all cards; pick a random card; swap it with another random card.  Do this 1000 times?  Good enough.
Deal the cards:   repeat for number of cards per player:  take top card, put it in player's X's hand.  Guess we need an array of cards being held by each player:  so in the declarations:  HandType PlayerHand[ MaxPlayers ];  figure out what HandType is later.

(4)  Keep on expanding each step... Handtype is going to need a list of cards this player has, so maybe an array of cards?:  CardArrayType ThisGuysCards;   Guess the array is something like:  typedef OneCard CardArrayType[ MaxCardsPerPlayer]; , where OneCard defines a unique card, maybe with : struct { char Suit; char Value; } ??   Good start

0

Author Commented:
Thaxs for the  ur suggestion,I am trying to implement this game ,as i was thinking to do it as a final project .Are can u suggest someother good topics.
0

Commented:
Sure we can ... What is the duration of the project ... Is it for graduation level or post graduation ... Also, what fields are you looking at - graphics, networking, system programming etc etc
0

Author Commented:
It for  graduation level ,and i  my concentartion is into networking .It would be of great help for me if u can suggest some new latest hot topics in networking.
0

Author Commented:

Hi Kdo and grg99,Thaxs for ur help .
0

Commented:
oops I had somehow lost this question ... Ok do you have a wireless networking setup ... There is a lot of security related work going on in 11g and others ...

If you would settle for normal datacom, you can try implementing tftp or ftp or any protocol you prefer ... Another one might be to write a device driver ... say for an ethernet card for Linux with fast path forwarding enabled.
0

## Featured Post

Tackle projects and never again get stuck behind a technical roadblock.