Welcome, Guest. Please Login or Register.
May 16th, 2024, 11:18pm

Home Home Help Help Search Search Members Members Login Login Register Register
Arimaa Forum « Commented games and pgn format »


   Arimaa Forum
   Arimaa
   General Discussion
(Moderator: supersamu)
   Commented games and pgn format
« Previous topic | Next topic »
Pages: 1 2 3 4  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Commented games and pgn format  (Read 6279 times)
leo
Forum Guru
*****





   


Gender: male
Posts: 278
Re: Commented games and pgn format
« Reply #15 on: May 29th, 2006, 9:52pm »
Quote Quote Modify Modify

The board displays fine now on IE6. The only problem left is that once the end of the game is reached the 'previous move' button won't work.
« Last Edit: May 29th, 2006, 9:52pm by leo » IP Logged
BlackKnight
Forum Guru
*****



Arimaa player #695

   


Gender: male
Posts: 98
Re: Commented games and pgn format
« Reply #16 on: May 29th, 2006, 11:44pm »
Quote Quote Modify Modify

on May 29th, 2006, 9:52pm, leo wrote:
The only problem left is that once the end of the game is reached the 'previous move' button won't work.

Thanks, bug fixed.
I guess I should also test using IE. Firefox is "too" tolerant! Wink
IP Logged
chessandgo
Forum Guru
*****



Arimaa player #1889

   


Gender: male
Posts: 1244
Re: Commented games and pgn format
« Reply #17 on: May 30th, 2006, 1:07am »
Quote Quote Modify Modify

on May 29th, 2006, 9:18pm, BlackKnight wrote:

hopefully some time soon variations enclosed by "(" and ")".

 
We're looking forward to this ! I wish we thought ourselves wise enough to tackle serious game analysis Smiley
IP Logged

BlackKnight
Forum Guru
*****



Arimaa player #695

   


Gender: male
Posts: 98
Re: Commented games and pgn format
« Reply #18 on: May 30th, 2006, 11:57am »
Quote Quote Modify Modify

on May 29th, 2006, 12:12pm, Fritzlein wrote:

What is the form of the raw file the reader is displaying?

To be a bit more formal, I suggest the following:
<Game> -> <Header> \n <Movelist(1w)>
<Header> example (instead of rules):
GameId: xyz
Event: 2006 PC
Site: Over the Net
Date: yyyy.mm.dd
White: Username (Name)
Black: Username (Name)
Result: 0-1
Reason: Goal
ResultCode: b
ReasonCode: g
PlyCount: 36
 
<Movelist(X)> -> Ply(X) \n Ply(X+1) \n ...
for example
<Movelist(2b)> -> Ply(2b) \n Ply(3w) \n ...
 
<Ply(X)> -> <X> <Steps> <Comments> <Variation(X)>*
 
<X> and <Steps> are obvious.
<Comments> -> empty OR { <Author>: <text without "{"> }
* stands for the Kleene star, so any natural number (including 0) of variations is allowed.
<Variation(X)> -> ( <MovelistLine(X)> )
 
MovelistLine() is defined just like Movelist() itself, but plies are not separated by newlines but by tabs.
 
So variations are recursive, comments are NOT.
 
One other point I wanted to stress: there should be only ONE comment following DIRECTLY after the move, and THEN any number of variations.
Depending on how the parser is implemented, this keeps it slightly simpler, but I think it's also more natural to keep the comments right next to the move.
« Last Edit: May 30th, 2006, 6:39pm by BlackKnight » IP Logged
BlackKnight
Forum Guru
*****



Arimaa player #695

   


Gender: male
Posts: 98
Re: Commented games and pgn format
« Reply #19 on: May 30th, 2006, 8:20pm »
Quote Quote Modify Modify

It's your turn!  Cheesy
 
The first example with variations (although they are useless Wink)
http://www.maenni.com/arimaa/gameviewer.php?gameid=1
 
(I did not test it with IE.)
 
Comments, questions, bugs?
IP Logged
chessandgo
Forum Guru
*****



Arimaa player #1889

   


Gender: male
Posts: 1244
Re: Commented games and pgn format
« Reply #20 on: May 30th, 2006, 8:35pm »
Quote Quote Modify Modify

yeah, it works with IE as well !
IP Logged

chessandgo
Forum Guru
*****



Arimaa player #1889

   


Gender: male
Posts: 1244
Re: Commented games and pgn format
« Reply #21 on: May 30th, 2006, 8:45pm »
Quote Quote Modify Modify

Well, the website looks half dead these days ; your game viewer is basically the only thing happening Smiley
 
Before people quicker to understand than I am come back, could you give as an example the full pgn document which is your game n°1 ? As soon as I'm sure to have understood, I send you a game to be the first one to do so Wink
IP Logged

chessandgo
Forum Guru
*****



Arimaa player #1889

   


Gender: male
Posts: 1244
Re: Commented games and pgn format
« Reply #22 on: May 30th, 2006, 9:24pm »
Quote Quote Modify Modify

and I guess you'll have to give us your email if you want us to send you files Wink
IP Logged

BlackKnight
Forum Guru
*****



Arimaa player #695

   


Gender: male
Posts: 98
Re: Commented games and pgn format
« Reply #23 on: May 30th, 2006, 10:12pm »
Quote Quote Modify Modify

on May 30th, 2006, 8:45pm, chessandgo wrote:
could you give as an example the full pgn document which is your game n°1 ? As soon as I'm sure to have understood, I send you a game to be the first one to do so Wink

Here you go:
 
GameId: 0
Event: 2006 PC
Site: Over the Net
Date: 2006.02.27
White: TESTING
Black: TESTING
Result: TESTING
Reason: TESTING
ResultCode: b
ReasonCode: g
PlyCount: 36
 
1w Ra1 Rb1 Rc1 Cd1 Ce1 Rf1 Rg1 Rh1 Ra2 Hb2 Dc2 Md2 Ee2 Df2 Hg2 Rh2 {RonWeasley: Very nice escape, Anadac! This was especially vexing since I thought I had a winning position and I don't expect to get those often against you. The key at the end was that the defense I planned when your E went back to the goal threat turned out to not work. Had I realized that, I would have defended the g-file rabbit differently.}
1b ca7 mb7 hc7 dd7 ce7 ef7 hg7 dh7 ra8 rb8 rc8 rd8 re8 rf8 rg8 rh8
2w Ee2n Ee3n Ee4n Hg2n {testing} (2w Ee2n Ee3n Ee4n Ee5w 2b mb7s hg7s ef7s ef6w 3w)  
2b hg7s ef7s ef6w mb7s {testing} (2b mb7s hg7s ef7s ef6w 3w)  
3w Ee5w Ed5w Ec5w Hb2n (3w Hb2n Ee5w Ed5w Ec5w {comment in variation} 3b ca7s mb6n ca6n ee6s 4w)
3b ca7s mb6n ca6n ee6s (3b ee6s ca7s mb6n ca6n 4w)(3b ca7s mb6n ee6s ca6n  4w)
4w Eb5e Ec5e Ed5n Ce1n
4b ee5w mb7s dh7w dg7w
5w Ed6e Ee6s ce7s Df2e
5b dd7s ce6n dd6n ed5s
6w Ce2e Ee5n Md2e Ra2e
6b mb6s ca7s ca6s rb8s
7w Ee6w Ed6s Cd1n Cd2n
7b Cd3e ed4s mb5n rb7w {RonWeasley: I see you trying edge camel attacks lately. It takes away the usual camel hostage threat. I knew I had to handle it differently.}
8w Ce3e Ed5w Ec5w Rf1w
8b ed3n ed4w ec4w ra7s
9w ca5s Eb5w Ea5e ra6s
9b Hb3e eb4s eb3n Rb2n
10w Dc2w Hc3s Db2w Da2n
10b rc8w rb8s mb6e mc6e
11w Me2n Cf2w Cf3s Me3e
11b ra8s ra7s rb7s rd8w
12w Eb5e rb6s Ec5s Hc2w
12b rb5e eb4n Rb3n rc5e {RonWeasley: I suppose if you don't give up the cat, your elephant get boxed it, but I thought that would also tie up mine. So this surprised me.}
13w Da3e ca4s Rb4w Ce2w
13b eb5s eb4n Ra4e rd5e
14w Db3e ca3e Dc3s cb3e cc3x
14b eb5e Rb4n md6w dd7s
15w Mf3n Mf4w Me4s re5s
15b ec5e Rb5e mc6w Rc5n Rc6x
16w Me3w re4s re3e rf3x Md3e
16b ed5s ed4s ra5s ra4s
17w Cd2e Me3e Hb2n Ra1n
17b ra6s ra5s mb6s rc8w {RonWeasley: Continuing the edge camel attack. I thought you had too few resources to succeed.}
18w Hb3s ra3e rb3e Hb2n
18b ra4s rb8w ra8s ra7s
19w Re1w Ec4n mb5s Ec5w
19b re8w rd8w rc8w ra6s
20w mb4w Eb5s Mf3n Mf4e {RonWeasley: I got a different kind of camel hostage but then put my camel forward. I was trying to be a threat to your horse, but I knew I would advance the horse, so that was a mistake.}
20b dd6s dd5w hg6w hf6w
21w Hg3e Mg4s Hh3n Hh4n
21b hc7s hc6e rb8s rb7s
22w Hh5n Hh6n Rh2n Rh3n
22b rb6s he6e hf6e ce7s
23w Eb4e rb5s Mg3n Mg4n {RonWeasley: Letting the camel go because I wanted goal threats on both edges. I should have pulled a horse or rabbit.}
23b rg8s hg6e rf8e ra5e
24w rg7s Hh7w Mg5s rg6s
24b hh6w rg5e ma4n rb4w
25w Hb3n Rb1n Rb2n Rc1w {RonWeasley: Another missed chance to do something aggressive on the east side. Instead, trying to make a west side goal threat, I made Silver's viable.}
25b ma5n ma6e rb5w mb6s
26w dc5e Ec4n Hb4e Rb1n
26b mb5s mb4n Rb3n rc3w
27w Dc2n Dc3s rb3e Rb2n
27b ed3s rc3x Dc2n ed2w rh5w {RonWeasley: I nearly soiled myself here because I didn't realize how my own rabbits blocked my defense.}
28w Rd1w Ce2s Ce1w Rc1w {RonWeasley: The only defense I could find. Pursuing the goal leaves Silver with a Gold piece on all sides. Gold has enough tempo to goal on the b-file.}
28b ec2e ed2e Cf2n Cf3x ee2e
29w dd5s Ec5e hd6w hc6x Ed5n
29b Dg2n ef2e Dg3w Df3x eg2n
30w Dc3e Dd3e Ed6s Ed5w
30b Mg4w eg3n ce6w rg8w
31w Ec5e cd6w cc6x Ed5n Ed6e {RonWeasley: Taking a cat in what thought was a safe play. Other sharp lines aim at opening up the b-file or traping Silver on c3 and c6. At this point I should have watched my a-file defense closely.}
31b Mf4n eg4w rg5s rg4s
32w Cd1e Ce1e Cf1n Rg1n
32b ef4s Cf2w ef3s rf8w
33w Mf5s De3e rg3e Df3e {RonWeasley: I thought about defending this with the camel, but I thought the a-file was safe and the camel would help the h-file threat. This was where I lost it because Silver now has goal in four. Did Adanac see this? In the far future, I expect bots will find these.}
33b Ce2n ef2w ee2w ed2w {RonWeasley: Or did he try this move in the planning window and see it now? This is when I saw it.}
34w Rb3e Rc3e Hc4s Hc3w {RonWeasley: From here, I tried defenses most likely to induce a mistake. Even against the resourceful Adanac it was worth a try.}
34b Rd3w dd4s ec2w
35w Rc3n Mf4w Hb3e ra3e
35b mb5e mc5w Rc4n Hc3x ra4s
36w Me4w Md4w dd3n Rc5e
36b eb2e Ra2e ra3s ra2s
37w
 
on May 30th, 2006, 8:45pm, chessandgo wrote:
I send you a game to be the first one to do so Wink

Great Cheesy
IP Logged
chessandgo
Forum Guru
*****



Arimaa player #1889

   


Gender: male
Posts: 1244
Re: Commented games and pgn format
« Reply #24 on: May 30th, 2006, 11:15pm »
Quote Quote Modify Modify

I still don't have your email adress, Blackknight ... well I've got something ready Wink I want the id number 0 ! (or a negative number would be fine as well Smiley )
IP Logged

BlackKnight
Forum Guru
*****



Arimaa player #695

   


Gender: male
Posts: 98
Re: Commented games and pgn format
« Reply #25 on: May 31st, 2006, 12:18pm »
Quote Quote Modify Modify

on May 30th, 2006, 11:15pm, chessandgo wrote:
I still don't have your email adress, Blackknight

Ok, please scroll up to the top of this page and check your messages. Wink I just send you a message with my email address. Smiley
 
on May 30th, 2006, 11:15pm, chessandgo wrote:
I want the id number 0 ! (or a negative number would be fine as well Smiley )

You can get 0 or some negative number, but actually you can also choose any other game id, like Jean1, Jean2, ... Smiley
IP Logged
BlackKnight
Forum Guru
*****



Arimaa player #695

   


Gender: male
Posts: 98
Re: Commented games and pgn format
« Reply #26 on: Jun 2nd, 2006, 3:27pm »
Quote Quote Modify Modify

I quickly adjusted a few moves in your game, Jean.
 
BTW, to keep the javascript source code shorter, the program is not checking whether the moves are actually valid.
IP Logged
BlackKnight
Forum Guru
*****



Arimaa player #695

   


Gender: male
Posts: 98
Re: Commented games and pgn format
« Reply #27 on: Jun 10th, 2006, 6:56am »
Quote Quote Modify Modify

I added a very simple page to let everybody add more games or edit them:
http://www.maenni.com/arimaa/gameeditor.php
 
I'm not setting any file locks and when you save the file the older version (if exists) will be overwritten.
So please don't abuse this page!
And it might be a good idea to keep a local copy of your input.
IP Logged
chessandgo
Forum Guru
*****



Arimaa player #1889

   


Gender: male
Posts: 1244
Re: Commented games and pgn format
« Reply #28 on: Jun 10th, 2006, 11:10am »
Quote Quote Modify Modify

wooo good ! now you have a whole self-sufficient device Wink
IP Logged

chessandgo
Forum Guru
*****



Arimaa player #1889

   


Gender: male
Posts: 1244
Re: Commented games and pgn format
« Reply #29 on: Jun 10th, 2006, 5:15pm »
Quote Quote Modify Modify

There are some things I don't understand ... I wasn't able to go further than move 20 because the event, gameid etc are displayed there in between of the moves ... And after some comments the "}" appears, and sometimes not ... and in my source it seems that there is only one "}" at the end of each comment ..
 
I tried to change things with the editor, but the variations are just not understood as such, and the game completely messed ... I don't understand why ...
 
Jean
IP Logged

Pages: 1 2 3 4  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.