Well time is almost up, deadline is tomorrow, but since I don’t plan on adding major modifications to my code,I’m going to wrap this up tonight.
Someone once told me that in this line of work you need to have an iron will to resist the urge of taking the easy way out when implementing a feature. He was talking about hardcoding, but the same principle applies here. Basically when confronted with the problem mentioned above, at first I tend to believe that I took the correct approach in the form of a hierarchical state machine with two layers, the main program that “knows” everything and commands the lower layers based on information received each iteration and then there’s the components.
Unfortunately there are two other features that I didn’t have time to add, but I felt would have been interesting to have in this prototype mainly a minimax to provide a bigger challenge (the AI isn’t moronic, but it’s not really that hard to beat either) and the possibility of playing over a network.
Now until I find a reliable way for everyone to download the sources, they are available upon request from me, so just drop a comment telling me where you’d want me to send it.