Fun! I once wrote a poker game, and know it can be a bit tricky to get all the logic right, not to mention, implementing multiple varieties of strategies. If I still had the code, I'd send it to you, even if it was javascript.
The fun part about that poker game I wrote, was actually more the story behind it:
I worked at some IT company. We made and maintained websites for some pretty online stores at the time. One day, I was between two projects, when some new manager (who came from another company we merged with) came to visit, and noticed me not doing too much. It used to be a pretty relaxed company, and days like these where we had "free time" between projects were pretty common, everyone experienced one of those once every couple of months. We gave over a hundred percent on projects, didn't write overtime hours on crunch, and over all had a lot of fun between collegues, even at times gathering on friday nights for game nights.
Mr New Manager was a bit of a career-idiot, and obviously not amused by me not being "productive" that day, so, with a red face he ordered me to investigate javascript (which I already knew) and write "a javascript program", not in any way clarifying what kind of program he was interested in. And that's when I wrote a pokergame. I even informed my usual project manager about what had happened and what I was busy with, and he allocated me some extra time for it under the header "educational assignment", and assigned some collegues to "testing" the project. Mr New Manager never found out, he rarely visited, preferring to work at an office closer to his home on the other side of the country. Half a year later, I left, and a while later, the company was bought out by an even bigger player. No idea what happened to Mr New Manager, though I bet (and hope) he suffered a mental breakdown somewhere along the way. Some people just shouldn't ever get in a leading position, and he was clearly one of those.