Bug 8142 - Chess games logs need to be stored somewhere
: Chess games logs need to be stored somewhere
Status: NEW
Product: Miniature
General
: 0.1.x
: All All
: Low enhancement (vote)
: ---
Assigned To: Michael Hasselmann
: general
:
:
:
: 8141
  Show dependency tree
 
Reported: 2010-01-17 03:19 UTC by Quim Gil
Modified: 2011-10-08 10:28 UTC (History)
3 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Quim Gil (reporter) nokia 2010-01-17 03:19:34 UTC
SOFTWARE VERSION:
0.1.6-1

EXACT STEPS LEADING TO PROBLEM: 
Play a game.

EXPECTED OUTCOME:
If something goes wrong (e.g. wrong legal/illegal moves) there is a way to
provide a log of the game to reproduce it.

ACTUAL OUTCOME:
No logs to be found.

OTHER COMMENTS:
I would say that this is mandatory content for the first release targetting
Extras, otherwise we will miss a good chance to get proper game logs if users
find things going wrong.
Comment 1 Michael Hasselmann 2010-01-19 13:14:56 UTC
The most trivial way to log a game is probably a list of annotated FEN strings.
Then, add a way to restore a position by entering a FEN string into Miniature,
and I could easily test the bug reports. Too bad that we still don't have PGN
support ...
Comment 2 Michael Hasselmann 2010-01-19 20:10:48 UTC
From IRC earlier today:

[18:12] <tbf> mikhas: for debugging you should serialize the entire MPosition
state to console/logfile
[18:12] <tbf> mikhas: it's mostly for you, not for the user
[18:12] <mikhas> yup
[18:12] <tbf> mikhas: so that bug reporters can send you proper bug reports
[18:13] <tbf> mikhas: maemo has this nice rich-core-dump feature, where you
don't only get the backtrace, but also /var/log/syslog, environment, process
list and whatever
[18:13] <tbf> mikhas: so for debugging you even could have a menu item: "do
rich core dump now"
Comment 3 Michael Hasselmann 2010-03-02 23:07:13 UTC
I added a game log screen, though it doesn't log that much stuff yet. I think I
still want to add the rich core dump option since that would improve debugging,
too.
Comment 4 Michael Hasselmann 2011-08-24 02:40:30 UTC
Still valid with Miniature 0.3
Comment 5 Quim Gil 2011-08-24 21:35:00 UTC
Setting low priority, according to the new situation.

FICS stores your games in its server. We would need first a way to access those
games from Miniature. This is a significant feature and belongs to the area of
Display games by you or others, live or stored at
http://wiki.maemo.org/Miniature/Wishlist
Comment 6 Quim Gil 2011-09-26 22:36:06 UTC
As an overview, the features implied here are:

- Decide the best way to store the information. FEN? PGN? Logged during the
game? Requested to FICS server after the game? Someone would need to
investigate this.

- Decide what games can be stored. Only those played on FICS with Miniature?
All your games in FICS? FICS and non-FICS games in Miniature? Just any PGN
saved...? 

- Decide how the games would be retrieved. Similar UI to the seek filters in
FICS seek game? Something different? By name? By date...?

- Provisionally a new point of access should be set in MainPage (which is 100%
about FICS now) but later on we should have a MainPage with the different types
of chess.

- Once a game is selected, what are the option the UI should offer to the user?

Things to consider:

- When this is in place someone will want to run an engine to evaluate the
moves, propose alternatives...

- I believe FICS allows you to browse and revisit your old games whole
connected, but someone should confirm. This would open the possibility to chat
via FICS with your opponent or someone else while reviewing the game.

- The UI to accomplish this should be basically the same than the UI for
processing chess lessons: a board, a chat area to display text and possibility
to go back & forth.
Comment 7 Uwe Kaminski 2011-09-28 10:41:33 UTC
(In reply to comment #6)
> As an overview, the features implied here are:
> 
> - Decide the best way to store the information. FEN? PGN? Logged during the
> game? Requested to FICS server after the game? Someone would need to
> investigate this.

There is a nice website which provides a web interface to request every game
made on fics: http://www.ficsgames.com/

Please use PGN to store the games because most chess database applications can
handle it.

> - Decide what games can be stored. Only those played on FICS with Miniature?
> All your games in FICS? FICS and non-FICS games in Miniature? Just any PGN
> saved...? 

As a PGN is a small file I would prefer to store every game made by Miniature
user. If a player is watching an other game (e.g. a relayed one) there should
also be an option to store these games. 

> - Decide how the games would be retrieved. Similar UI to the seek filters in
> FICS seek game? Something different? By name? By date...?

IMHO this is good enough for the begin.

> - Provisionally a new point of access should be set in MainPage (which is 100%
> about FICS now) but later on we should have a MainPage with the different types
> of chess.

We should have about a global menu on bottom of the page sooner or later.

> - Once a game is selected, what are the option the UI should offer to the user?

In a first step "replay" should be the only option. Later there should be the
possibility to resume an adjourned game.

> Things to consider:
[...]
> - I believe FICS allows you to browse and revisit your old games whole
> connected, but someone should confirm. This would open the possibility to chat
> via FICS with your opponent or someone else while reviewing the game.

In a first quick look into the help files I was not able to find a proper
commandf for this. But I know the web site as written above.