Saturday, January 16, 2010
Download
I was deceived
It was actually an interesting fault - it proved the usefulness of a testing team for one! :D It also shows what is true about the plan - I have been using it heavily in the beginning, but later I depended on my head more and more until I stopped using it. I also stopped putting changes into it, as they just all happened in my head (and here). Finally, once I finished I did not go through it and check that I've done everything, and because I've changed many things, it wouldn't be perfect either. In projects bigger in scale such approach would probably not work since it would be too hard to keep all the info fresh in the mind (as the situation showed, even at this scale wrong-do's happened).
Now the game is officially tested and finished :)
Thursday, January 14, 2010
Work officially finished!!!! ... or is it?
Even the final changes did cause me some problems, but I managed to overcome them and now the game is completely finished. I've also added a bar on the right which shows whose turn it is. I also added a bonus! When the up arrow is pressed, the color of the white field -> It gets more and more bright, until it reaches perfect white. If it is pressed again it "skips" to complete black and then gets lighter and lighter, circulating as above. This bonus took me about 4 minutes to make and it is an example of how I am going to keep this project "live".
Now that I have finished the whole game, I will not have as much time for programing and will not be able to make such big projects for quite a while. But I will be able to teak this game and play around with it, adding functionality and appearance to it! This is a great way of keeping the learning going even after the project.
Final thoughts:
I am really glad I managed to do this project because it certainly was very challenging! Although I have changed some things from the initial design, some ideas I had to throw out, I am really happy with it and in fact I didn't really expect it to be much more than what it is. This has been a huge leap in my programing skills and I hope to keep up the development (although not as rapid) in the manner described above.
Wednesday, January 13, 2010
work almost done
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)
Sunday, January 10, 2010
Another step forward
So I made a windows message box come up. I was reluctant to do it - I think it's a bit too disturbing - but it actually came out alright. Although now that I thought about it, I think there might be a way to make the writing stay for a few seconds if I make the program simply wait. I'll research functions that could help me to do that and I'll see which solution I like more.
UPDATE [16:12]
I managed to do what I wanted with a very simple Sleep() function. Unfortunately the text is quite small and somehow I didn't manage to change that, even though theoretically I should be able to. But never mind that - I placed it in the middle and make the colors visible making it quite noticeable and at the same time not too disturbing.
Today's work
What was even more frustrating about all this, was that i all that confusing code I made a small mistake in th begining, very careless. Then, once I finished writing, the whole moving mechanism broke. It took me a long time and a lot of trouble to figure out what was wrong. This problem fixing was not exciting like many before - this was mainly frustrating.
Saturday, January 9, 2010
Small changes
Back to work again
I am using different IDEs on the home computer and the computer I was using in Poland, which was virtually the entire time I programmed until now. When I moved the code there were a few errors which were not there on the laptop, but I managed to overcome them (the previous practice was very useful here). Some of the problems I kind of know where they are coming from, but I'm not sure why. But I managed to get rid of all of them and now can keep working on the actual program.