Warning: include(../../functions.php): failed to open stream: No such file or directory in /home/rogersa/public_html/ham/Games/HAM_Hearts/ham_hearts.php on line 1

Warning: include(../../functions.php): failed to open stream: No such file or directory in /home/rogersa/public_html/ham/Games/HAM_Hearts/ham_hearts.php on line 1

Warning: include(): Failed opening '../../functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rogersa/public_html/ham/Games/HAM_Hearts/ham_hearts.php on line 1
Ham Tutorial :: Games :: HAM Tutorial Hearts

Warning: include(http://www.aaronrogers.com/ham/contents.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/rogersa/public_html/ham/Games/HAM_Hearts/ham_hearts.php on line 13

Warning: include(): Failed opening 'http://www.aaronrogers.com/ham/contents.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rogersa/public_html/ham/Games/HAM_Hearts/ham_hearts.php on line 13

HAM Tutorial :: Games :: HAM Tutorial Hearts

 

Copyright 2003 Aaron Rogers
See GNU.org for more information on the GPL.

 

I wrote a Hearts game for a GbaDev.org competition (10/21/02). I used HAM, of course, to write the game.

I will put up an explanation of the source code when I get it cleaned up and can find the time. For now, you can download either the game by itself, or with the source code that you can try to figure out on your own. Beware, the code isn't the prettiest thing you've ever seen. :- P

 

Code Source

Because of the size of the files, I will put links to the source.

(Version 3.3)

ai.cpp
ai.h
game.cpp
game.h
main.cpp
main.h
splash.cpp
splash.h

 

Download Code

Version 3.4 - Latest version. Very playable. AI is pretty good!
ham_hearts.gba (861 KB) - The game by itself.
ham_hearts_v3.4.zip (532 KB) - The game and source code.

If, for some reason, you want the originial version:

Version 1.4 - The version submitted to the competition.
ham_hearts.gba (335 KB) - The game by itself.
ham_hearts_v1.4.zip (190 KB) - The game and source code.

 

View Demo - Play the game online now!

 

Screenshots

Intro Screen

Intro Screen

Main Menu

Options Screen

Get Ready To Play

Select Three Cards To Pass

Look at that big card to help you see


Uh oh, I played a Heart

Score Screen

Throw the 2 of Clubs already

Darn, how did the computer win?

 

<<

HOME

>>