Author |
Topic: Sharp P2 having long thinks? (Read 1442 times) |
|
Swynndla
Forum Guru
Arimaa player #1821
Posts: 235
|
|
Sharp P2 having long thinks?
« on: Jun 13th, 2011, 11:11am » |
Quote Modify
|
I was looking at this game: http://arimaa.com/arimaa/gameroom/opengamewin.cgi?client=1&gameid=18 7321&role=v&side=b where bot_Sharp2010P2 was taking mostly between 10-30 seconds per move, but sometimes it would do 1 minute, 2 minute, and even some 3 minute moves (see for example: 11g, 207g, 298g, 218g). Now "P2" means that it is only looking 2 ply ahead (its move and opponents move) with no extensions, right? So why the long thinks? Unless the server had some really high loads or something (although the long moves had short moves either side). I think there was maybe one other live game going on at the same time (when I was watching towards the end). I looked at previous games for this bot, and the same thing (up to 3 minute moves occasionally), but other P2 bots I looked at don't do this. So unless my spot-checks have been too few, it looks like it's how this bot is (and not the server load). Perhaps it has some sort of evaluation bug where it gets in some sort of loop, and it's not really thinking beyond 2 ply?
|
|
IP Logged |
|
|
|
lightvector
Forum Guru
Arimaa player #2543
Gender:
Posts: 197
|
|
Re: Sharp P2 having long thinks?
« Reply #1 on: Jun 13th, 2011, 11:46am » |
Quote Modify
|
For Sharp, P2 means that the main full-width search goes 2 turns deep. There's still a quiescence search below that examines capture and goal threats and defenses. A P2 search will go at least 12 steps deep for lines that involve capturing pieces. Sharp2010 has a problem where the quiescence search can sometimes cause the search to explode, if there are a lot of capture or goal threats (either in the current position, or that would occur after the moves it's considering). This problem also still exists in Sharp2011, although to a lesser degree. Also, judging from my impressions of other bots, Sharp2010 might be more heavy-weight than many other bots. The evaluation function does a lot of work and is bulky and slow, so the search can't get quite as deep as other bots. So when you force it to get to the same fixed depth (P2), it just takes much longer on average to do so than other bots do.
|
« Last Edit: Jun 13th, 2011, 11:54am by lightvector » |
IP Logged |
|
|
|
Nazgand
Forum Guru
Arimaa player #6461
Gender:
Posts: 87
|
|
Re: Sharp P2 having long thinks?
« Reply #2 on: Jun 13th, 2011, 11:59am » |
Quote Modify
|
289g, you say? Whoever plays a game that long is three halves as crazy as I. The move that bothered me most for it's long thinking was 207s; I suspect it was looking at eV<^ M>, and analyzing the resultant camel/cat threats. But I don't really know, and 3m5s seems too long. At 217g, I thought I might actually win, but after thinking for 2m32s it came up with a clever response. I feel that this response time was good for the situation; then again, a better player might have seen it quicker than Sharp. Edit: Perhaps the reason 207s took as long as it did was the fact that 207g was the first time it was offered a chance to reduce material, and no longer care about previous position history. Perhaps the abrupt reduction of position history is not well managed. Edit: noticed lightvector's post about extra search for captures.
|
« Last Edit: Jun 13th, 2011, 12:16pm by Nazgand » |
IP Logged |
|
|
|
Fritzlein
Forum Guru
Arimaa player #706
Gender:
Posts: 5928
|
|
Re: Sharp P2 having long thinks?
« Reply #3 on: Jun 13th, 2011, 12:44pm » |
Quote Modify
|
on Jun 13th, 2011, 11:11am, Swynndla wrote:Now "P2" means that it is only looking 2 ply ahead (its move and opponents move) with no extensions, right? |
| It depends on the bot. BombP2, and CluelessP2, for example, have extensions beyond two ply, whereas GnoBotP2 and AamiraP2 don't, if I remember correctly.
|
|
IP Logged |
|
|
|
Swynndla
Forum Guru
Arimaa player #1821
Posts: 235
|
|
Re: Sharp P2 having long thinks?
« Reply #4 on: Jun 13th, 2011, 7:11pm » |
Quote Modify
|
Ahh thank you all for your responses, I understand now. Thank you lightvector for the explanation of Sharp too. I was under the impression that P1 meant only one ply with no extensions, and P2 meant only two plies with no extensions. But for a bot that does heavy pruning, that would make for a weak bot, so I see why extensions are turned on. Hmmm, what about a bot that has lots of extensions, eg qsearch, but also extended searches for "interesting" lines, or lines where it feels it needs to search some attack or defense (quiet but powerful) moves (and other extensions maybe also) - wouldn't that sort of bot be just about as strong as its CC version? And sorry I got the moves wrong above, I meant 10s, 206s, 207s, 217s - but it looks like people knew what I meant. (Edit: Off topic: Nazgand: I think you missed a forced win in two after Sharp's 3 minute think on 220s)
|
« Last Edit: Jun 13th, 2011, 7:28pm by Swynndla » |
IP Logged |
|
|
|
lightvector
Forum Guru
Arimaa player #2543
Gender:
Posts: 197
|
|
Re: Sharp P2 having long thinks?
« Reply #5 on: Jun 13th, 2011, 8:27pm » |
Quote Modify
|
A random interesting thought: for versions of bots that are actually quite slow, even if they are configured to be "hardware independent," the bot's actual playing speed might affect human performance in various ways (slow bot might bore humans and make them pay less attention, or give them more time to think, fast bot might unconsciously encourage players to play faster as well, etc.). As the hardware changes the speed of the fixed-performance bots, these factors might change too. It's probably not that significant an effect, giving the multitude of other confounding factors that are inevitable when playing online games. But it's a thought.
|
|
IP Logged |
|
|
|
Nazgand
Forum Guru
Arimaa player #6461
Gender:
Posts: 87
|
|
Re: Sharp P2 having long thinks?
« Reply #6 on: Jun 14th, 2011, 7:00am » |
Quote Modify
|
Swynndla: do you mean Rf^< E>d>? silver would have responded with c>>>>. Edit: hmmm. responding with E<R<<^ would be win in 3.
|
« Last Edit: Jun 14th, 2011, 7:11am by Nazgand » |
IP Logged |
|
|
|
lightvector
Forum Guru
Arimaa player #2543
Gender:
Posts: 197
|
|
Re: Sharp P2 having long thinks?
« Reply #7 on: Jun 14th, 2011, 11:19am » |
Quote Modify
|
Nazgand: Pull the dog west instead, looks like goal in 2
|
|
IP Logged |
|
|
|
Nazgand
Forum Guru
Arimaa player #6461
Gender:
Posts: 87
|
|
Re: Sharp P2 having long thinks?
« Reply #8 on: Jun 14th, 2011, 3:10pm » |
Quote Modify
|
No, because rd>> df> would refreeze the rabbit, and silver could use the last step for e>, causing a goal threat. Thus, that is not goal in 2 either, and I find it harder to read. Edit: I forgot the elephant would freeze the rabbit, disregard my argument.
|
« Last Edit: Jun 14th, 2011, 3:11pm by Nazgand » |
IP Logged |
|
|
|
|