Well, in less than 7 hours will start Google Code Jam. It is my first time in this, I wish I can pass the first round. I wish I have the time for it. I KNOW I will use Python.
So, I wish I can continue with Evil Tesuji next week.
Search
Friday, April 12, 2013
Monday, April 8, 2013
New Commit
Well, this time I added the basic and mandatory GTP commands, so I can test te application using GoGui.
They are:
- Name
- Komi
- Protocol_version
- Version
- List_commands
- Boardsize
- Clear_board
Thanks to the Computer Go mailing list, I saw a BIG difference between Java and Python. In Java I could use for standard output system.out.println, but I had some problems with sys.stdout.write. The thing is that the method println calls his own flush and in Python I have to put that line in my code. So, now it is working.
I really have to thank to the members of the list, without them I couldn't progress a lot with this.
Labels:
baduk,
computer go,
Google Code,
gtp,
igo,
java,
main loop,
programming,
python,
svn,
weiqi
Saturday, April 6, 2013
Configuring new enviroment at home
Well, here I am, with all this new problems in my project, so new poblems needs new enviroments.
I will work now with Eclipse (Juno) adapted for Python, and adding SVN support to commit it to google code (If I need something else about SVN I will keep Tortoise installed)
Google Code
Well, as I promised I created an SVN repository in Google Code with the program. I am commiting there the new program in Python.
The repo is here and every time I commit I will tell you here, with all the changes.
For now in rev2:
- There is a main that calls the mainLoop.
- The main loop ceates a board (as described in old posts) and initializes it.
- A logger class is created and it writes in a file (ETlog.txt) the empty board.
- IT enters in a loop and exits.
Yes, that's it, but is good for a start. I am "translating" my old code from Python to Java (explained why in previous posts).
So, that's how it is, had for me but... I think I am more confortable writing in Python than in Java.
Labels:
baduk,
board,
computer go,
go,
igo,
log,
main loop,
programming,
python,
weiqi
Thursday, April 4, 2013
Total Refactor update
Well, lately I had the project with poor updates, but I see that some people is looking at this so I decided to come back and with some new ideas:
- I will be uploading the code to Google Code (I know, github is maybe better, you tell me if you want it on gitHub) from scratch. I created a new project and copying the code I know is good and looking for refactors that I can make and will start writing a lot on paper to know in advance what I want in every step.
- I will be doing a lot of recordings and documentations and putting it there.
- I have a problem, I had to uninstall jdk here so in paralel I will mantain a version in Python. Yes, maybe it will be the main version in the future.
Subscribe to:
Posts (Atom)