Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-28 Thread Andrea Carta
> I just realized - you mentioned that you are using Python to run it - if > you use PyPy instead, you should get about 3x speedup or more. That was a great suggestion! With PyPy michi now takes less than one minute per move. Maybe I'll play it some more.. mr. Andrea Carta __

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-27 Thread Xavier Combelle
very nice job 2015-03-25 16:36 GMT+01:00 Petr Baudis : > Hi! > > So what's the strongest program you can make with minimum effort > and code size while keeping maximum clarity? Chess programers > were exploring this for long time, e.g. with Sunfish, and that inspired > me to try out somethin

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-27 Thread folkert
> > Windows 7 on a I5 processor, and I'm quite sure multiprocesses is OK (I see > > 5 python processes running when michi is thinking). Maybe it's multicore > > usage not working properly. I will investigate that. > > I just realized - you mentioned that you are using Python to run it - if > you u

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-27 Thread Petr Baudis
On Fri, Mar 27, 2015 at 02:18:05PM +, Andrea Carta wrote: > > You'll need to start reading/changing the code - the second point is > > about the N_SIMS variable. > > Well, I don't like changing other people's software, but if you wish... Well, reading and tweaking the source code is the whol

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-27 Thread Andrea Carta
> You'll need to start reading/changing the code - the second point is > about the N_SIMS variable. Well, I don't like changing other people's software, but if you wish... > What kind of computer are you playing on? > It might be that on Windows Python cannot use multiple processes... Windows 7

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-26 Thread Petr Baudis
On Thu, Mar 26, 2015 at 08:59:36PM +, Andrea Carta wrote: > Other things: > - when playing (michi) against GnuGo (that was winning) I inserted a wrong > move, then typed "help" hoping to get help about getting the move back. The > program crashed. > - at the moment I'm playing myself against mi

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-26 Thread Andrea Carta
> The correct parameter is 'gtp', not '--mode gtp'. That worked! It was necessary to insert full path of python executable followed by full path of michi, then "gtp". Full path of michi only + gtp throws again the same error (not a win32 application). Other things: - when playing (michi) against

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-26 Thread Petr Baudis
On Thu, Mar 26, 2015 at 12:46:04PM +, Andrea Carta wrote: > > It should be enough to just enter the path to the program, make sure to > > pass the "gtp" parameter. Try opening the shell window to investigate > > if you hit trouble. > > After opening the shell window it works: michi.py is the

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-26 Thread Andrea Carta
> It should be enough to just enter the path to the program, make sure to > pass the "gtp" parameter. Try opening the shell window to investigate > if you hit trouble. After opening the shell window it works: michi.py is the right command to let it work (of course I have the Python interpreter in

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-26 Thread Denis Blumstein
On 25/03/2015 16:36, Petr Baudis wrote: So what's the strongest program you can make with minimum effort and code size while keeping maximum clarity? Chess programers were exploring this for long time, e.g. with Sunfish, and that inspired me to try out something similar in Go over a few eveni

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python?code

2015-03-25 Thread Petr Baudis
On Thu, Mar 26, 2015 at 12:11:52AM +, Andrea Carta wrote: > Petr Baudis ucw.cz> writes: > > > that inspired me to try out something similar in Go over a few evening > > recently: > > > > https://github.com/pasky/michi > > Very nice work, dr. Baudis! > But: > - have you any idea how to get i

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread Andrea Carta
Petr Baudis ucw.cz> writes: > that inspired me to try out something similar in Go over a few evening > recently: > > https://github.com/pasky/michi Very nice work, dr. Baudis! But: - have you any idea how to get it to work with GoGui under Windows (I guess it was developed under Linux)? - can't

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread hughperkins2
Oh wow, 640 lines? And gets 6k? Thats impressive! ___ Computer-go mailing list Computer-go@computer-go.org http://computer-go.org/mailman/listinfo/computer-go

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread hughperkins2
Cython works well too. Sage uses cython. ___ Computer-go mailing list Computer-go@computer-go.org http://computer-go.org/mailman/listinfo/computer-go

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread Petr Baudis
On Wed, Mar 25, 2015 at 07:14:39PM +0100, Kahn Jonas wrote: > >>Based on my > >>observations, the limiting factor is time - Python is slw and > >>a faster language with the exact same algorithm should be able to speed > >>this up at least 5x, which should mean at least two ranks level-up. > > >

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread Kahn Jonas
Based on my observations, the limiting factor is time - Python is slw and a faster language with the exact same algorithm should be able to speed this up at least 5x, which should mean at least two ranks level-up. Maybe a first step would be using numpy arrays for the board and patterns. The

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread Kahn Jonas
So what's the strongest program you can make with minimum effort and code size while keeping maximum clarity? Chess programers were exploring this for long time, e.g. with Sunfish, and that inspired me to try out something similar in Go over a few evening recently: https://github.com/pa

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread Urban Hafner
On Wed, Mar 25, 2015 at 4:57 PM, Petr Baudis wrote: I'm afraid you won't get a good inspiration about properly implementing > a board structure. That would make the code a lot more complicated and > much longer! > > And, uh, the program actually does not implement UCT. ;-) It uses RAVE > exclus

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread Petr Baudis
On Wed, Mar 25, 2015 at 04:49:04PM +0100, Urban Hafner wrote: > Awesome, Petr. I haven't programmed in Python for a long time (I like Ruby > better), but I think I should be able to understand it without a problem. > It seems like a good starting point to see how UCT is implemented (I still > haven

Re: [Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread Urban Hafner
Awesome, Petr. I haven't programmed in Python for a long time (I like Ruby better), but I think I should be able to understand it without a problem. It seems like a good starting point to see how UCT is implemented (I still haven't gotten around to it for my bot https://github.com/ujh/iomrascalai)

[Computer-go] [ANN] Michi - 15x15 ~6k KGS in 540 lines of Python code

2015-03-25 Thread Petr Baudis
Hi! So what's the strongest program you can make with minimum effort and code size while keeping maximum clarity? Chess programers were exploring this for long time, e.g. with Sunfish, and that inspired me to try out something similar in Go over a few evening recently: https://github