Search

Tuesday, January 15, 2013

Day 158: Back!

Once again, I am back to coding. My eyes are a lot better. Like a month with conjunctivictis, keractitis and all the problems that it gave me... (double vision, couldn't touch my daughter, photofobia, pain) was not something good, now I have to re read some of my code and get back to work.

Thursday, January 3, 2013

Day 146: Keratitis -My eyes against me-

The "fun" with my eyes never ends, now that Mr. Conjunctivitis is gone, is time to receive mr. Keractitis and his double vision.

DAMN!

Friday, December 28, 2012

Day 140: Back!

Well, I am back after some days with conjunctivictis (both vacterial and viral) :( I am not 100% fine, but will try to continue with all the refactoring.

Thursday, December 20, 2012

Day 132: More refactoring


One more thing that I won't need anymore: The tryToKill method called in the main loop. It will be easier for me if in the setMove method I kill the stones.

This will make me do more refactoring: Suicidal rule will change to.

Wednesday, December 19, 2012

Day 131: 0.01G

Ok, this is changing fast. I am refactoring a lot. So, this is what I think now:


  • The array with the game moves should be in a new class Game. It will be easier to make reference to the game moves if all the methods that manipulate the game array are there.
  • I Created a new package for rules. Every rule will have a class, it is for the future. Some things should change when the engine finds a ko or a suicide.
  • Some old code that I commented is now deleted.
I found console class (Good bye console!!!!!)

Tuesday, December 18, 2012

Day 130: At least it worked

Well, I was having lots of problems with KGS connection, but as I suspected, the problem was not with KGS, it was with me. Every command that don't need a return at least should have an empty string return. Komi command didn't return it so all commands coming from behind were queued.




Solved that, but saw that KO rule was working bad, so I will have to redesing it. I have an idea. I will create a new class for KO, because ko rule will not only need to prevent illegal moves, but start some things in the future.

Monday, December 17, 2012

Day 129: Made me this


Just for fun, this days should come home this tshirt :)

I will feel better while seeing my program being destroyed.