December 12, 2011

Enhanced Tong-Its! Version 1.1 RC

First of all, I would like to thank everyone for downloading the BETA version (I have already removed the link of the BETA version from Google Docs). In case you didn't notice the bugs and the naivety of the AI of the BETA version, allow me to enumerate some of those:


  • the AI does not know how to meld a RUN backwards, although the cards are still taken during sapaw - which results in sapaw to own meld
  • the money does not get saved after you closed the game, every time you start to play (you've closed and opened the application), you'll get the same thousand dollars
  • you don't know how much money you've won or lost on a particular round
  • you can actually perform sapaw when you are still about to CHOW, which should NOT BE the case
among others, and the most nasty BUG (only for some audio drivers though)
  • you'll get occasional BSOD (at least on my Windows 7 with VIA audio driver and an SRS system): PFN_LIST_CORRUPT
I honestly do not know why the last BUG is happening. My gut tells me that it is because of .NET's built-in SoundPlayer so I decided to use a third party audio engine (IRRKlang), I didn't get the BSOD after that so there lies the problem, I suppose. I actually did not like to use third party audio engine and just use .NET's built-in SoundPlayer but .NET's built-in IS REALLY ugly. With .NET's SoundPlayer, you can't play two or more sounds at the same time that is why I've cheated by using the Windows system sounds to create multiple sounds played at once. So now, I am using IRRKlang. There is also BASS.NET which is quite powerful but in this instance, I'll go with IRRKlang because of its more simple API. Since, I am now using a powerful audio engine, I decided to improve the sounds also and I hope y'all like it.

So here are the major changes made:
  • AI knows how to meld a RUN backwards
  • AI smarter than ever -- too broad to discuss but honestly, I am having a hard time defeating those AIs now
  • Added more and better sounds including a background music (except during playing)
  • Improved messages -- added how much won/lost on a round
  • Added a volume control
  • The statistics are sorted by the most recent round played
  • Internal profile management improvements -- although naive approach but it works
  • Added a more helpful HELP dialog, rather than a copy of the rules which can be found online
  • Adjusted card dialog width (for the view stack and dump decks)
  • Prevent user from exiting a round when it is not yet over (that's cheating) - although they can close the application when the going gets tough :-( and I can do nothing about that (okay, I can do something but it complicates things, maybe down the road :-) )
  • The money is now persisted to the profile
  • Improved bluffing algorithm
  • and many other minor BUG fixes and enhancements