Author |
Topic: Web tool for sharing Arimaa moves (Read 577 times) |
|
camelback
Forum Guru
Arimaa perl monger
Gender:
Posts: 144
|
|
Web tool for sharing Arimaa moves
« on: Aug 16th, 2009, 3:23pm » |
Quote Modify
|
I have an idea of creating a web tool to create and share Arimaa positions and moves for discussion. The tool would be similar to plangame feature but with more features. The tool should enable the following. 1. You create a starting position with or without few continuing lines and click "create link" button that will provide you with a link for that position and lines. May be you can also "name" that move-lines. 2. Shared link can be used by others to create their own version of move-lines. This will help in mobgame move or other specific move discussion. I guess it can be implemented without rule checking with just a palette a pieces and an empty board. The key is to save these move lines in the back end. I very much like to have this tool but not sure where to start. (I don't know web programming). Any insights or thoughts appreciated.
|
« Last Edit: Aug 16th, 2009, 3:25pm by camelback » |
IP Logged |
|
|
|
rajmahendra
Forum Senior Member
Raj
Gender:
Posts: 40
|
|
Re: Web tool for sharing Arimaa moves
« Reply #1 on: Aug 17th, 2009, 10:12am » |
Quote Modify
|
One already there in place, got this from Omar... http://arimaa.com/arimaa/games/planGame.cgi One draw back is you dont have interface. What you say is good. but you need to plan for which interface you plan to build. there are so many interface Web based you can go for a Flash.... Stand alone you have.. Java, VB etc...
|
|
IP Logged |
|
|
|
tize
Forum Guru
Arimaa player #3121
Gender:
Posts: 118
|
|
Re: Web tool for sharing Arimaa moves
« Reply #2 on: Aug 18th, 2009, 2:19am » |
Quote Modify
|
I modified arimaa/games/jsShowGame.cgi to this Code:<html> <head> <title>View position</title> <script type="text/javascript"> // This script is from http://www.bennadel.com/blog/695-Ask-Ben-Getting-Query-String-Values-In-JavaScript.htm var objURL = new Object(); window.location.search.replace(new RegExp( "([^?=&]+)(=([^&]*))?", "g" ),function( $0, $1, $2, $3 ){objURL[ $1 ] = $3;}); </script> </head> <body> <center> <script type="text/javascript" src="http://www.arimaa.com/arimaa/jsClient/p1/prop.js"></script> <script type="text/javascript" src="http://www.arimaa.com/arimaa/jsClient/p1/vars.js"></script> <script type="text/javascript"><!-- arimaa_vars.mode="replay" arimaa_vars.viewfrom="w" arimaa_vars.title="Game Position" arimaa_vars.wplayer="Noname" arimaa_vars.bplayer="Noname" arimaa_vars.wrating="0" arimaa_vars.brating="0" arimaa_vars.wratingk="30" arimaa_vars.bratingk="30" arimaa_vars.timecontrol="0/0/0/0/0" arimaa_vars.rated="0" arimaa_vars.result="w" arimaa_vars.reason="g" arimaa_vars.movelist = objURL[ "moves" ]; for( var i=0; i<1000; i++ ) arimaa_vars.movelist = arimaa_vars.movelist.replace( "_", " " ); for( var i=0; i<1000; i++ ) arimaa_vars.movelist = arimaa_vars.movelist.replace( "NN", "\n" ); arimaa_vars.chat=""; arimaa_vars.timeused="" arimaa_vars.commentsPage="" //--></script> <script type="text/javascript" src="http://www.arimaa.com/arimaa/jsClient/p1/arimaaClient.js"></script> </center> </body> </html> |
| If you "call" this file like file.html?moves=Ra1_Ra2_Rc2_Rb4_Re1_Re2_Rh1_Rh2_Cc4_Cd2_Dd1_Dh4_Hb6_Hf2_ Mc3_Eg3NNra8_ra7_rb8_rc7_rf8_rg5_rh5_rh6_cb5_cg4_dd6_de6_he3_hf4_mg2_ed4 NNCc4n_ed4w_Cc5e_ec4n you'll get a postion with a move line to share (if file.html is publically avaliable). (The code is from this server and I don't know if it's legal to pick code like this.) Of course you'll still need the interface to easily make the position and move line, but you can now make it a standalone program generating that link.
|
|
IP Logged |
|
|
|
camelback
Forum Guru
Arimaa perl monger
Gender:
Posts: 144
|
|
Re: Web tool for sharing Arimaa moves
« Reply #3 on: Aug 20th, 2009, 8:42am » |
Quote Modify
|
Thanks you for the comments Raj and tize, I'll give a try.
|
|
IP Logged |
|
|
|
|