Oh Shit - I Love Cards
Post date: Oct 23, 2011 10:22:41 AM
As a child my family used to play a crudely named game, "Oh Shit". We used to have a ball attempting to trip
up each others plays and achieve the scores that we had bid. Of late my social group has began to invest a lot of our spare time in playing card games. Namely we have taken a great interest in 500 and Oh Shit. From this sparked an interest for me to develop Oh Shit as a browser based computer game.
For myself the part that I enjoyed the most was programming the logic into the computer AI. It gave me a frame to view each of the strategies I often unconsciously played and a platform to analyse the most effective strategies.
During the development I developed a test platform that let me put each of the AIs I developed, each employing different strategies, up against each other over a large number of games (usually around 1000). Doing this allowed me to rank the effectiveness of each strategy and in turn offer users different difficulty levels.
Halfway through the development I felt as though as a stand alone game people would quickly get bored. Therefore, I made the decision to integrate Facebook into the game. This firstly gave each player an identity with a very quick authentication process allowing me to store their game histories in a database. Furthermore, I was able to incorporate a friend high score function such that people could compete their their friends on my game.
Technically developing Oh Shit was very exciting. I applied much of what I learnt at university to make my code as maintainable as possible. Throughout my code there are many interfaces that allow classes to be easily interchanged. This style of development allowed me to easily develop multiple AIs without changing any external code.
I would love it if people would visit my new application and even attempt to beat the advanced AI: