26 Jun 2009

Sinat - Graphics revised and computer algorithm enhanced

I've recently updated the graphics of my Egyptian game Sínat to look more 3D. I got tired of the flat, spartan look of the Flash game and decided to fiddle around with a 3D modeler called Swift3D to see what better things I could come up with.


Also, I've updated the strategy of the computer which I believe may be better than what I have so far. My new algorithm, which I call Seth (named after the Egyptian god of storms and chaos), first checks to see if there are any pieces to switch with the opponent. If no switching is possible, it moves the first piece closest to the end that can legally be moved. Of course, all of my programs now automatically avoid Par Maw (the water square) at all costs since its a penalty square. After testing 25 games, the new algorithm won 68% of the time against Lateesha, the "retarded monkey" algorithm that moves completely by random. Not only does it win more of the time but it wins by an average of two pieces against random play. Adaptation makes me giddy.

0 comments:

Post a Comment