SimpleMoveList.class class not found
line: 46
file: svn/trunk/raptor/src/raptor/swt/chess/movelist/
TextAreaMoveList.java
I changed line 46 from:
private static final Log LOG = LogFactory.getLog
(SimpleMoveList.class);
to:
private static final Log LOG = LogFactory.getLog
(TextAreaMoveList.class);
but when I run Raptror.java as a Java application I get a null pointer
exception at
line: 112
file: svn/trunk/raptor/src/raptor/Raptor.java
any suggestion?
Best regards, Andrea.
Check swt.jar in lib/swt/ the build process might have put the one for
another OS.
Bogdan (bvk256)
Description Resource Path Location Type
The method close() is undefined for the type Browser
BrowserWindowItem.java /raptor/src/raptor/swt line 93 Java Problem
if I commented out that line the project compile fine but when i run
it (Raptor.java as java app) and load a game from PGN file I can not
see the board properly (I only see the upper left square a8).
Any ideas?
Thankyou, Andrea.
Sorry for the waste of time.
On 2 Feb, 23:33, Carson Day <carson...@gmail.com> wrote:
> I bet you downloaded 3.5 (the current release swt) instead of the 3.6M5. Try
> downloading from here:http://download.eclipse.org/eclipse/downloads/drops/S-3.6M5-201001291...
> pick you environment at the bottom and follow the instructions on the wiki
> after that.
>
> I just noticed 3.6M5 was released January 30th, and I have not had a chance
> to try it out yet. Let me know if you run into any issues with it.
>
> CDay
>
Any suggestions on where to start (I mean, which pacage, classess and
so on).
Thank you in advance fro your patience.
Andrea.
It uses a parser/listener model for parsing pgn. As the pgn is parsed
methods are invoked on the listener to assemble the games. The code is
located in the raptor.chess.pgn package. Some key classes
StreamingPgnParser,LeninentPgnParser,PgnParser,PgnParserListener,LenientPgnParserListener,
and ListMaintainingPgnParserListener.
There are several Pgn artifacts that are built into the game api in
the raptor.chess package. Game and Move are some of the key classes.
If you look at the move class you will see methods to get the
comments, highlights, arrows, remaining clock time, nags, and
sublines. These are created as the game is parsed. A game also stores
meta information in pgn headers. There are get/set header methods in
the Game object.
As far as visual annotations that has not really been built out yet.
When you go back moves, the TimeTakenForMove is used in raptor to show
the clock times. The pgnHeaders are used as a way to store off meta
informatin about a game, white name, black name, elos, etc. Bodia has
recently written a new move list that is based on text instead of a
table called TextAreaMoveList .
The gui parts to this will be a little tricky. The way to approach it
is to add methods in the raptor.swt.chess.interface like
moveListMoveRightClicked(int halfMove), sublineRightClicked, etc and
then implement a new PgnAnalysisController. When
moveListMoveRightClicked is invoked it could show a popup menu of
options like add comment, add NAG, remove current subline or whatever.
The controller could also create sublines and alter the SubLine
artifacts of a move as moves are made on the board. The controller
could also adjust the EngineAnalysisWidget as moved are made in
sublines if the user is using an engine.
The new gui move list Bodia wrote would then have to look at the pgn
artifacts of the Move and adjust the MoveList as it is traversed.
Populating the new comments section with the Comment artifacts,
showing sublines in some user friendly way with ()s or something.
Showing some type of glyphs for the NAGs (+-,-+.=+.+=,inf sign for
unclear, etc).
That is probably clear as mud if you are new to the code, but it
should get you started on pgn parsing and how to go about displaying
it in the gui.
On Feb 4, 11:47 pm, cday <carson...@gmail.com> wrote:
> It uses a design pattern with a parser and a listener. The goal is to
> be able to handle text comments, nags, and nested sublines. It also
> handles some specific chess base comments like remaining clock time
> and arrows. I refactored this from another project I was working on to
> work in raptor. I have not gotten around to fixing some issues. The
> subline parsing is a little buggy and I think it is currently disabled
> in the parser. I also have never really tested arrow and highlight
> parsing. The idea is to use the comments ChessBase uses to draw arrows
> and add highlights for moves.
>
> It uses a parser/listener model for parsing pgn. As the pgn is parsed
> methods are invoked on the listener to assemble the games. The code is
> located in the raptor.chess.pgn package. Some key classes
> StreamingPgnParser,LeninentPgnParser,PgnParser,PgnParserListener,LenientPgnParserListener,