Wednesday, January 13, 2010

work almost done

i have programmed further today and i was very pleased with the
results. I have added turn system which makes the game almost
complete. I even thought so and i went to another computer to make
sure it will wort everywhere. It worked well there with the only
exception of the wrong note message.

Anyways the code is not yet complete, as I found/remembered commu
thing that needs to be added - the ability to do continuing captures
in one move. When i started implementing that, I've felt the reality
of a thought i had a few days ago; that my and does not have enough
functions. That it has to much code just thrown into it instead of a
neat division into "working units". For what i was doing now, such the
functions did not only structure the code, making it easier to follow
and edit, but also came to be pretty much essential!

Therefore i am right now in the midle of restructuring a part of the
code. Then I'll look up one more concept (overloading functions) which
will be handy here and will be a good practise use. I simply need to
remind myself what the notation in this case is.

The structure of the code is a perfect example of a case job. The
better is done, no matter the amount of effort, the easier the further
work is (just like the design was)

No comments:

Post a Comment