Xman Blog Inside

Sunday, August 20, 2006

Latest Reversi in Java: After much "backup recovery"

The latest Reversi in Java had been kept safely in my backups for quite some time. I recall that I did backup it into CDs, together with many versions of reversi I developed. After backup into CDs, all the files become capital letters, hence, I have to change all the files into correct case before I can launch the Java applet (Stupid backup). That took me quite some time, together with cleaning up many different versions. It was a mistake I didnt use any version control software such as CVS, SVN, ... during development. From now onwards, all changes shall check-in into my svn repository.
Here is the latest Reversi in Java, xversi-java-v0.7a.tgz under GPL, which added some little features on top of xversi-java-v0.6b:
  1. Show a green dot of computer's last move.
  2. Compute end game when the game is near end.
  3. Draws the piece with better aspect ratio as we resize the board.
Lessons learned:
  • Always document your changes to your documents, codes, ... Use tools such as CVS, SVN, ... to help tracking the changes.
  • I shall prepare a changelog file in the future releases.
  • Backup each version of your programs into a package such as .tgz, or .zip, such that when you recover from your backup, program files attributes, from filenames to their permissions, are recovered to the original. Versioning helps you to clean up the mess.
  • Portable is good. :) After few years, these reversi programs are still running properly without much issues. :)

Labels: , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home