Nine Men's Morris for SDL.Nine Men's Morris for SDL.
This game was listed as missing in action: it was no longer available when the site closed.
License: free| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| no | yes | yes | no | no | no | yes |
Submitted by anonymous on 2002-04-15.
Comments
You have the same goofy indentation style as my former office-mate. He realized that white-space is free, though. Just kidding. I would like to mention a couple things I (personally) would change, though, and I hope you don't mind. Instead of the macro defines, it's enerally safer and more readable if you use inlines (they're type-safe). Same thing goes for const int x instead of #define x. Including the c-standard stuff as , etc... is now deprecated for C++, although they still have to keep C so it will still work. You're declaring that you're using namspace std anyway, use the new style includes , , etc... I think you must have C++-ized C source, though. It's really more readable (in my opinion) if you put white-space in your expressions. I would have taken a crack at porting it to the SDL, but the main() function was just too byzantine to get through without major effort.
Now, don't get me wrong, it looks like an interesting game, and the code is probably solid even if I would change the style. I'd like to play it but I don't have svgalib.
A legjobb malom amit eddig lattam! A dednagyapam jatszott velem malmot annak idejen... good work!
Well there are several reasons the coding style is deplorable. (at least for now) Mostly it's because I made malom intially on a long night with too much caffiene. :) I've made the initial SDL port, and am working on cleaning up the code a lot. I've just taken my first C++ recently, and previously been a C programmer for quite sometime. So I'm still prone to use C style stuff instead of C++. Give me a while, the cruft should clear out. :)
Heheh, I didn't say it was deplorable at all (except for main(), which is just too large, and that's only inconvenient to readers). It just isn't the patented "C++ way" :) Hopefully you'll resubmit an SDL version so I can try the game out.
Nice game
