Page 2 of 9

Re: Sneak Peek

Posted: Thu Jul 22, 2010 9:18 am
by Bill Spight
Congratulations, Mr. D! :)

Very cool!

Re: Sneak Peek

Posted: Thu Jul 22, 2010 9:20 am
by kirkmc
I see no reason for it to be other than a web app.

After looking a bit more, this is clearly the best joseki tool out there. Congrats!

As for the letters, I'd say they should be a bit bolder, and if you could put shadows around them they might stand out from the board a bit more.

Re: Sneak Peek

Posted: Thu Jul 22, 2010 10:06 am
by Li Kao
I think only variations above a certain probability(say 1%) should get a letter and for the rest just use the same kind of marker to indicate there is a variation at all. Currently it is rather hard to find the most common variations.
And for the ghost stones you might want to use a css tilemap, that way only one (big) image has to be loaded for all of them.

Re: Sneak Peek

Posted: Thu Jul 22, 2010 10:34 am
by k1ndofblue
daniel_the_smith wrote:
k1ndofblue wrote:I think this is very cool also. I look forward to the progress you are making.

On a side note (and I do not even know if it is possible) it would be cool to to see joskis for corners that have had two approch moves played against them.


Thanks!

Use the "pass" button at the bottom and you can do that right now. :)



That is very awesome! Thanks!

Re: Sneak Peek

Posted: Thu Jul 22, 2010 10:49 am
by daniel_the_smith
Li Kao wrote:I think only variations above a certain probability(say 1%) should get a letter and for the rest just use the same kind of marker to indicate there is a variation at all. Currently it is rather hard to find the most common variations.


Good idea, I might do that.

Li Kao wrote:And for the ghost stones you might want to use a css tilemap, that way only one (big) image has to be loaded for all of them.


Currently there are rather too many of them for that to work (they are generated on the fly by the server), but I will be reducing their number to speed things up anyway. I didn't actually realize you could do that with css, thanks.

Re: Sneak Peek

Posted: Thu Jul 22, 2010 11:54 am
by fwiffo
Actually, you don't need separate images for different levels of transparency. Just use the black stone and white stone images, and set the transparency with CSS.

First, calculate the following:
Bo = (games with a black stone)/(games with any stone)
Wo = (games with any stone)/(total number of games games)

The markup would look something like:

Code: Select all

<div class="wstone" style="opacity: Wo;"><div class="bstone" style="opacity: Bo;"></div></div>

Substituting Bo and Wo.

The the base stylesheet would be something like:

Code: Select all

.wstone, .bstone {
    width: 26px;
    height: 26px;
}

.wstone {
    background: transparent url(images/wstone.png);
}

.bstone {
    background: transparent url(images/bstone.png);
}

Of course, to get cross-browser compatibility you'll have to add some browser-specific styles (e.g. using filter: in IE6 and IE7 and -moz-opacity for older versions of Firefox, etc.)

Re: Sneak Peek

Posted: Thu Jul 22, 2010 12:03 pm
by daniel_the_smith
Wow, thanks fwiffo, that will speed it up a lot!!

Re: Sneak Peek

Posted: Thu Jul 22, 2010 10:29 pm
by ethanb
Why do the ghost stones disappear when there is only one path? It seems like that's almost when they would be the most useful!

But the site as a whole is a really neat idea! I like it!

Re: Sneak Peek

Posted: Fri Jul 23, 2010 4:39 am
by daniel_the_smith
Hmm, do you have an example position?

Re: Sneak Peek

Posted: Fri Jul 23, 2010 8:20 am
by Li Kao
The way you keep state is broken. If you open two instances of the website they interfere.
And I think each position should have a unique url. If you want to use the position id only from JS it is a good idea to put it behind a # mark, since this doesn't cause a page reload.

Re: Sneak Peek

Posted: Fri Jul 23, 2010 8:29 am
by daniel_the_smith
The site was down for a bit earlier. I started it up again. I know what's wrong and will fix it tonight. (Thanks, loki, for pointing that out after my game with Actorios)

Li Kao wrote:The way you keep state is broken. If you open two instances of the website they interfere.
And I think each position should have a unique url. If you want to use the position id only from JS it is a good idea to put it behind a # mark, since this doesn't cause a page reload.


I agree the state keeping is not ideal, but it's a ways down on my list.

The words "This position" are a link to a URL that will take you to the position, e.g., low distant approach to 3-4. Is that good enough or were you looking for something else?

Re: Sneak Peek

Posted: Fri Jul 23, 2010 8:40 am
by Li Kao
yes, exactly that. I'd like the url to point to the current position is some way(probably using http://dailyjoseki.com/browse#bxkwvabvu)

Re: Sneak Peek

Posted: Fri Jul 23, 2010 9:21 am
by daniel_the_smith
So you're asking for the URL you see in the address bar to change with every click? I might be able to pull that off with the # syntax. But this also will probably not be at the top of the list for a while. :)

Re: Sneak Peek

Posted: Fri Jul 23, 2010 9:42 am
by Li Kao
Another idea:
Show when the current variation was first/last played. Perhaps display a histogram showing its popularity over time.

btw what programming language are you using?

Re: Sneak Peek

Posted: Fri Jul 23, 2010 9:49 am
by daniel_the_smith
Li Kao wrote:Another idea:
Show when the current variation was first/last played. Perhaps display a histogram showing its popularity over time.

btw what programming language are you using?


Been waiting for someone to ask that, I'm using this awesome new language. Both for the server, and for the utility that builds the tree. For a database, I'm using mongodb, although the browse page doesn't need the database.

Yeah, how recent a joseki is is something I intend to incorporate eventually. A histogram would be a nice touch!