Author |
Topic: Javascript game planner (Read 1255 times) |
|
rbarreira
Forum Guru
Arimaa player #1621
Gender:
Posts: 605
|
|
Javascript game planner
« on: Apr 15th, 2011, 10:50am » |
Quote Modify
|
I've made a page which allows one to use the Javascript plan window with an arbitrary starting position or list of moves. I noticed some were asking for something similar (as opposed to the current game planner which uses the old flash client), so here it is: http://109.74.204.218/arimaa/plan_js/plan_js.html This allows one to easily copy back variations tried on the plan window, by using the M button in the JS client. Let me know if there's any problems with it!
|
« Last Edit: Apr 15th, 2011, 10:56am by rbarreira » |
IP Logged |
|
|
|
Hippo
Forum Guru
Arimaa player #4450
Gender:
Posts: 883
|
|
Re: Javascript game planner
« Reply #1 on: Apr 16th, 2011, 2:31am » |
Quote Modify
|
After clicking the view button, new tab opens but not all images are loaded and the viewer says "done". Tested on both mozilla and chrome.
|
|
IP Logged |
|
|
|
rbarreira
Forum Guru
Arimaa player #1621
Gender:
Posts: 605
|
|
Re: Javascript game planner
« Reply #2 on: Apr 16th, 2011, 3:28am » |
Quote Modify
|
Strange... I have only tried it with Firefox in Linux, I'll give it a try on other browsers/OS's later. Web programming is not my big thing, but just as ideas did you activate any special security settings or have some antivirus that might be interfering? This page points at arimaa.com for the JS client, so there might be some cross-site scripting prevention kicking in.
|
|
IP Logged |
|
|
|
Hippo
Forum Guru
Arimaa player #4450
Gender:
Posts: 883
|
|
Re: Javascript game planner
« Reply #3 on: Apr 16th, 2011, 7:23am » |
Quote Modify
|
I have tested it on Xperia's Opera with exactly same result. ... all gold pieces on captured area, silver pieces replaced by dummy image on the same place, board image not loaded.
|
|
IP Logged |
|
|
|
Hippo
Forum Guru
Arimaa player #4450
Gender:
Posts: 883
|
|
Re: Javascript game planner
« Reply #4 on: Apr 16th, 2011, 7:28am » |
Quote Modify
|
on Apr 16th, 2011, 7:23am, Hippo wrote:I have tested it on Xperia's Opera with exactly same result. ... all gold pieces on captured area, silver pieces replaced by dummy image on the same place, board image not loaded. |
| Oh silly me, after writing anything to the move list the view button invoked page which loaded entirely.
|
|
IP Logged |
|
|
|
rbarreira
Forum Guru
Arimaa player #1621
Gender:
Posts: 605
|
|
Re: Javascript game planner
« Reply #5 on: Apr 16th, 2011, 9:00am » |
Quote Modify
|
Great that you got it to work. Yeah, the easiest way to try it is just to copy the example on the right (or use one of jdb's endgame puzzles). I tried it on Firefox, Chrome and IE in Windows, it seems to work fine.
|
|
IP Logged |
|
|
|
Fritzlein
Forum Guru
Arimaa player #706
Gender:
Posts: 5928
|
|
Re: Javascript game planner
« Reply #6 on: Apr 17th, 2011, 5:22pm » |
Quote Modify
|
I just got a chance to try this out via jdb's Puzzle 10. It's fantastic! The expert mode of the Javascript planner is far superior to the old planner which requires send and undo, etc. Omar definitely needs to pull this on site as the official planner. Thanks, Ricardo!
|
« Last Edit: Apr 17th, 2011, 5:22pm by Fritzlein » |
IP Logged |
|
|
|
mistre
Forum Guru
Gender:
Posts: 553
|
|
Re: Javascript game planner
« Reply #8 on: Apr 21st, 2011, 9:12am » |
Quote Modify
|
The Javascript game planner does not work if you are using the Flash Client when planning moves in postal games. Can you change it back to default to the Flash game planner when using the Flash Client? Thanks.
|
|
IP Logged |
|
|
|
omar
Forum Guru
Arimaa player #2
Gender:
Posts: 1003
|
|
Re: Javascript game planner
« Reply #9 on: Apr 29th, 2011, 12:00pm » |
Quote Modify
|
on Apr 21st, 2011, 9:12am, mistre wrote:The Javascript game planner does not work if you are using the Flash Client when planning moves in postal games. Can you change it back to default to the Flash game planner when using the Flash Client? Thanks. |
| Does, the JavaScript client not work for you? I am going to drop support for the Flash client pretty soon.
|
« Last Edit: Apr 29th, 2011, 12:01pm by omar » |
IP Logged |
|
|
|
mistre
Forum Guru
Gender:
Posts: 553
|
|
Re: Javascript game planner
« Reply #10 on: Apr 29th, 2011, 4:17pm » |
Quote Modify
|
on Apr 29th, 2011, 12:00pm, omar wrote: Does, the JavaScript client not work for you? I am going to drop support for the Flash client pretty soon. |
| Oh please don't! I don't like the Javascript client at all. I have this problem with the Javascript Client where blue boxes show up when you click on a cell. I prefer the original Flash v1 by far.
|
|
IP Logged |
|
|
|
Fritzlein
Forum Guru
Arimaa player #706
Gender:
Posts: 5928
|
|
Re: Javascript game planner
« Reply #11 on: Apr 29th, 2011, 6:11pm » |
Quote Modify
|
on Apr 29th, 2011, 4:17pm, mistre wrote: I have this problem with the Javascript Client where blue boxes show up when you click on a cell. |
| Yes, I also have the problem of selecting board squares. Then I have to click off the board to get the selection to go away. It is annoying. However, I still prefer to use the Javascript client for its other nice features.
|
|
IP Logged |
|
|
|
Swynndla
Forum Guru
Arimaa player #1821
Posts: 235
|
|
Re: Javascript game planner
« Reply #12 on: Apr 29th, 2011, 8:22pm » |
Quote Modify
|
The blue square artifact can be replicated by moving the mouse when the mouse is clicked (if the left mouse button is clicked, and the movement of the mouse causes a drag). I think that is why it happens, and if you don't move your mouse I don't think it will happen. Whether it's the mouse that's too sensitive or the javascript too unforgiving (or is it an OS thing?), I don't know, but if I make sure I'm not moving the mouse before I click, then it seems good. Playing blitz is a problem for me though, as I'm trying to move quickly, and I sometimes get a blue square, have to click the side of the board, try and move quickly again ... and this may happen several times while doing four steps quickly on one move, which backfires as I use more time on blue squares than I would have if I'd done it carefully, but still it means that in a blitz game, sometimes it feels like I'm concentrating on moving my mouse carefully and slowly rather than concentrating on the game. I can get used to it though.
|
|
IP Logged |
|
|
|
rbarreira
Forum Guru
Arimaa player #1621
Gender:
Posts: 605
|
|
Re: Javascript game planner
« Reply #13 on: Apr 30th, 2011, 4:04am » |
Quote Modify
|
Yes, I have also seen the selected-squares problem with the JS client... Maybe there's a way to disable selection from the JS code. Omar, a google search for "javascript disable selection" gets results like this one, that might work. But note that it uses two hacks for different browsers, and the code seems to interfere with the mouse so you'd probably need to make sure it doesn't break the clicking as well.
|
|
IP Logged |
|
|
|
omar
Forum Guru
Arimaa player #2
Gender:
Posts: 1003
|
|
Re: Javascript game planner
« Reply #14 on: May 10th, 2011, 4:53pm » |
Quote Modify
|
I had looked for a solution also, but it was not working right. As JavaScript matures I'm sure there will be standard solution for this. For now, as Karl mentioned, just click off the board to have the selection highlighting go away. One of the reasons I switched to using a JavaScript client was so that others could also download it and play around with the code and contribute improvements.
|
|
IP Logged |
|
|
|
|