Click here to Skip to main content
13,005,198 members (61,737 online)
Click here to Skip to main content
Add your own
alternative version


5 bookmarked
Posted 25 May 2004


, 25 May 2004
Rate this:
Please Sign up or sign in to vote.
An article that will give you something useful on you PPC. A game!


This article makes a presidents game on your PPC. We'll get to what Presidents is in just a second. I had to use the resource manager to get all of the pictures and I found it was quite difficult to do many things with the Image class. I don't know if it is just my computer, but it seems that many things that Microsoft says the CF supports doesn't work. Hmm...


The game of Presidents is a simple yet very strategic card game. It can be played with any where from 3 to infinity players. It can also be played with 1 to infinity number of decks. The one I created here plays with 4 players (can be changed) and 1 deck (not easily changed). In the real Presidents, the ranking of cards starts at 3 goes to 4, 5, 6... Jack, Queen, King, Ace, 2. Yes, 2 is supposed to be the highest. The Jokers clear the pile immediately with only one of them. The first hand is started with the 3 of clubs. Each player then plays a card of equal or greater value then the one previously played. If you play a card of equal value, you skip the next person(s). If you are playing doubles (ex. two 3's) and you play the other 2 cards (ex. the other two 3's) you skip 2 people. The pile keeps on building until no one can play on it or someone plays a joker. The last person to play a card on the pile gets to start the next pile. The first person to get rid of all of their cards wins and is called the president. If you are playing with 4 people, the rankings are President, Vice President, High Scum, and Low Scum in order that they go out. At the beginning of the next hand, the Low Scum gives their 2 highest cards to the President and the President gives their 2 lowest cards to the Low Scum. The Vice and the High Scum do the same, but only with one card. Then the President starts the first pile. **Warning** This game can be very addictive and competitive. Do not start playing it unless you have quite some time on your hands (some where around 20 minutes). This version of Presidents for the PPC only plays one hand and no matter if they have the 3 of clubs, player #1 goes first.

Using the code

This code shouldn't need be modified unless you intend to make it better :) It is separated into 2 classes, the form and the deck class. I have commented the code fully so I shouldn't need to explain it here. Just read all of the comments, you'll get it.

Points of Interest

This program did not start out for the PPC. I made this for regular windows so that I would be able to get the basic design of it down. Also, the windows version was used to create the resource file. I got really frustrated with this code because I could not get the image class to work correctly. Finally I got it to work and never touched that bit of code again!


  • V1.0 Windows version in C#. Works fine
  • V1.1 Converted the windows version into PPC.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170627.1 | Last Updated 26 May 2004
Article Copyright 2004 by MichaelCoder
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid