Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: ajorians on October 25, 2014, 02:10:14 pm

Title: nHearts
Post by: ajorians on October 25, 2014, 02:10:14 pm
Hey Guys!

I really wanted to make the game Hearts.  I enjoyed playing it growing up.

So far I got a good part of the game down; in that it is pretty much fully playable!  I didn't make any of the A.I. for the other players yet.  Right now they just choose a random card of the cards that are possible to play.  But I do intend on making some algorithms such that the A.I. players put up some sort of a challenge.

There is a Jack of Diamond option where if you take the Jack of Diamonds it is a negative 10 points.  Yahoo Games has that option.  BTW the -10 is stored in the settings file so if you wanted to use nTxt to modify it to be -15 or +10 or whatever you could!  ;)

Below are some screenshots as well as a download (with source) if you'd like to give it a try.  And here is a YouTube link to see it in action:


Let me know what you think!  :)

And have an amazing day!
Title: Re: nHearts
Post by: Hayleia on October 25, 2014, 04:59:27 pm
Yeah, I love that game, glad to see it ported to the Nspire :D

However, when I try to compile it (you'll say that it's already compiled, yeah, but I was experimenting things), it says "Config.h:7:36: fatal error: ArchiveLib/ArchiveLib.h: No such file or directory".
Did you forget a file or am I doing something wrong ?
Title: Re: nHearts
Post by: Adriweb on October 25, 2014, 05:34:53 pm
Works for me when I compile all the libs beforehand :)

(Also, nice job, the graphics are pretty cool ! Although maybe an other background than the light brown one would be good ? :P)
Title: Re: nHearts
Post by: ajorians on October 25, 2014, 06:32:28 pm
Hi Guys,

Hayleia: I probably should work on that makefile!  I go under ArchiveLib and do a make; then go under CardLib and do a make; then go under HeartsLib and do a make.  Finally at src do a make.  Thanks Adriweb!  Yeah it isn't intuitive (yet).

I haven't tried this version: http://www.ticalc.org/archives/files/fileinfo/423/42341.html that exists on the Nspire.  I had intended on making my own.

Good suggestion Adriweb!  I was debating having the other players have "names" as well as show their current score during gameplay too.

Also I am thinking of whether to allow the user to close the game in the middle of a hand/game; and then could resume the game upon reopening the game.  It is something nice; the only downside is extra development time.  :)

Keep having fun!
Title: Re: nHearts
Post by: ajorians on December 09, 2014, 10:33:13 pm
Hey Guys,

Here is an update!

I got decent A.I. players now.  If you are good a Hearts you'll probably find them fairly easy.  I had somebody test Hearts and they loved it that they played for hours so I'm feeling pretty good about that!

I added in achievements, options and bug fixes.  I updated the background during game play.  Also I have a score review that shows scores from each hand and you can scroll through that hands when there are more than 10 hands.

I'm feeling pretty good about this and will probably start my next project here shortly!  So let me know what you think!

And have a great day!
Title: Re: nHearts
Post by: AngelFish on December 09, 2014, 11:29:24 pm
Great work, this looks awesome. It's amazing how far nSpire games have come from just a few years ago.
Title: Re: nHearts
Post by: DJ Omnimaga on December 10, 2014, 12:04:16 am
I didn't see this until now but this indeed looks impressive graphically. I should give it a try at some point.
Title: Re: nHearts
Post by: Eiyeron on December 10, 2014, 01:52:06 am
You should switch your text on the background to white, it'll be easier to read. Or white with a black outline.
Title: Re: nHearts
Post by: ajorians on December 10, 2014, 06:36:40 am
Thanks guys!

Eiyeron: Are you talking about on the menu screen where you choose "play", "achievements", "options" and "help"?  Or is it also with other areas in the program as well?

Have a great day!
Title: Re: nHearts
Post by: ajorians on December 31, 2014, 11:34:21 am
Hey Guys,

Just a small update.  I added in a 3-player mode.  Under Options you can turn that on.  In 3-player mode each player gets 17 cards instead of 13.  And with a 52 card deck that means there is an extra card.  It is face down in the middle and whomever takes the first trick gets that card.  That card could be a Heart (even Queen of Spades) but I have it so it won't break Hearts.

There are many variations to Hearts as you can see on the Wikipedia page: http://en.wikipedia.org/wiki/Hearts#Variations but I've played 3-player Hearts before and liked it enough to add that.

Hope you all like it!  And have fun! :)