Skip to content
matringer edited this page Feb 18, 2018 · 1 revision

Welcome to the just-for-fun wiki!

What's here now are a couple of game simulation programs that I wrote. Most of the development took place a few years back but I've revisited it here and there with some minor tweaks.

The solitaire game simulation started out as a question: "If I play solitaire perfectly, would I win money over time?" This is assuming (roughly) that we play by the "vegas rules" that were included with the MS windows version solitaire. I succeeded in answering the question--yes you do make money. However, small tweaks in the rules can make a big difference (for example always selecting your next card off the stack with the biggest depth).

I modeled the game just using simple java classes and then created the game play logic. Once that was completed, I really wanted to see a visual representation of the cards moving around and being played. So, I looked into the "processing" library (processing.org) which I found awesome---very easy to use and intuitive. So, you will need to download the run-time for processing in order to see that part of the code in action.

Next, I wanted to create a Sudoku solver. I pretty much followed the same progression of development as I did with the solitaire game. Note that I butchered the spelling of Sudoku in the class names, etc.

Things I would improve:

  • A real build process
  • Refactor for unit testing
  • Any bugs?

This is really just a "for fun" effort...I never imagined sharing it with anyone. If you find any of of this interesting or end up wanting to use the code for additional projects, please drop me a line...I'd love to hear from you. Let me know if you have any other suggestions as well.

Thanks, -Mat Ringer

Clone this wiki locally