Monday 2 August 2010

Quite a Productive Night.


Android wise I produced my first AI process, the random player. Yep a computer component who just places pieces randomly. Not exactly the most difficult AI to beat (Thankfully) but it will serve the purpose of weakening any stronger AI players I create. If one in 5 moves is a random move people should find it easier to beat.

It also served the purpose of driving the code forward and some refactoring, things are starting to find their natural place although there is more refactoring to get the stonger AIs in place. It is simple stuff just pushing methods around so I can ask the right object questions.

I also managed to get a bit more GWT learning in place. Getting GWTCanvas hook up was a bit of fun, plus I managed to get some scroll bars added as well. Yes it is all simple stuff but it is good to get these wins and help grow my confidence. Next up is writing an example of the incremental command. I have seen GWT is pretty fast but there is no excuse for freezing the browser and given I don't have an upper limit on the time it will take to compute things I need to be ready. 

I considered web worker scripts as they seemed like real threading but they appeared to not be fully supported in GWT and currently I prefer to keep it to the core GWT where possible and only branch out when I have to. 

All that in two hours and my brain not being at 100%. Time for an early night.

No comments:

Post a Comment