Search

Showing posts with label problems. Show all posts
Showing posts with label problems. Show all posts

Monday, March 11, 2013

TOTAL Refactor

Well, I was making lots of new things to my program and it started failing everywhere, so I decided to document all while recheck my code and change lots of things.

This will be hard, but I want my program working good again in some days.

Monday, February 18, 2013

Day 1: Nova era.

Well, I am back. You may think "What happened to the project?", here is my answer:


  • Some long conjunctivictis and queractitis took me of the computer for some time
  • Lack of time. I had LOTS of things to do lately. 
  • Frustration. I was frustrated for all the problems with this. I really needed to stay away from this to get back with new energy and ideas.
Right now I want to get back to the project and this time I will make it work. First I am looking at the code, using Visio to see how it works (is my code and somehow it went out of my hands). At first look I see some things to change, this is the good part of getting out of the project for some time.


So, this is the "Nova Era"

 

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!

Monday, December 17, 2012

Day 129: Problems with KGS

Ok, the engine works playing using goGui, but not in KGS, I will try to write what happens:


  • I connect with my user account Draculinio
  • Connect Evil Tesuji using his account on KGS.
  • Start a game.
  • KGSGTP says something about opponen left the game and returns
  • From what I see in my log, some commands are sent, like komi.
  • No genmove or play commands sent :(
So, here are my problems... :(

Sunday, December 16, 2012

Day 128: The failure after 15D

Well, some good things and some bad things.

Connection worked!
So, I saw Evil Tesuji there:


And almost played:


And then, my little daughter started to cry, and couldn't play the game, then, we went to a birthday party :( But, first thing done. Now, let's try again.


Monday, December 10, 2012

Day 122: This is getting hard

I think I solved some issues, but to get a stable version is another thing. Sometimes ko method is not working at all, I will test it again tonight and make loads of changes. So, the debut will be with 0.01E for now. Suicide seems to be working.

This IS hard.

Saturday, December 8, 2012

Day 120: The ship is sinking


This projet is not easy, it never was, but sometimes it gets frustrating. The BIG mistake I made all this time was to test it on 19x19, just to see some moves.

I tested yesterday on 9x9 and found LOTS of problems: Hangs, illegal moves (ko, suicide), problems when the player passes and moves in the border. Most of them are being saved, but it is taking me a lot of work to solve all of this. Well, back to work!

Saturday, October 13, 2012

Day 65: L&D I

Let's begin with the most basic thing about Life and Death: Prevention of an atari.

The first approach that I see (I will correct it as long as I think of it) is:

Look at the positions that limit the stone.
If some of them have a stone of the same color, see how many liberties have that group.
If the group have 1 liberty, add that stone and count the liberties again.
If still have 1 liberty quit points, else add points.

This is a very bad approach, but I can evolve from this I think (maybe I am wrong, but... let's try).

NOTE: Ok... while trying this, a wild bug appeared! A suicidal stone was played. Do not know if this happened because the new code ruins all or if there was always that bug.

Friday, October 12, 2012

Day 64: Deadlines & Problems

Sometimes we need deadlines to present something, and I put 15D (december 15th.) as the day that Evil Tesuji will start playing in KGS. I don't think that the program will make a lot and is more to test it. There are some volunteers to test Evil Tesuji from 30 kyu to 5 kyu (I will contact a 4 dan to).
Is obvious that the program will be crushed in every single game, but it can be good as a starting point.

In other notices, yesterday I was trying to test Evil Tesuji against GnuGo, just for fun and to test if the program can end a game (doesn't matter the result). It is really hard. gogui-twogtp didn't work, cgos neither. I will keep working on that.


Tuesday, October 2, 2012

Day 55: Eureka!


Finaly solved the problem, well, two problems. In suicide the data was persisting somehow, so, inexistent groups were being compared. The other was in how it searched for suicide.

Next: A little video with random moves and a log :).

Monday, October 1, 2012

Day 54: This is getting bad...


All was going good until I saw this:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at Elements.Board.getMove(Board.java:65)
at Actors.Ruleset.getGroup(Ruleset.java:62)
at Elements.Board.tryToKill(Board.java:80)
at Start.MainLoop.startGame(MainLoop.java:58)
at Start.Principal.main(Principal.java:14)

I think i feel like:


Tuesday, September 18, 2012

Day 41: Deleting unused code

A lot of things changed when I decided to use GTP. Human class is not needed anymore, so I am deleting it.  I had lots of problems with code, so these days I made some changes, reorganized and fixed some bugs.

I am slow nowadays, raising a baby, working and returning to university having 34 years is hard, but I promise that in 2 days I will be back with more computer go.

Tuesday, August 28, 2012

Day 20: Problems, problems everywhere...



From the begining I knew this was going to be hard. Now, this is getting harder, I just don't understand what the hell is happening. When I run my program sending manually the command "genmove w" it worked fine, but with gogui, sometimes it sends incorrect data. I am just confused, don't know what is happening, I will try to fix this to continue. I also want to log all what the engine does. I can't use the console for this, I will do it in a file or something...