5 years agoUI: Make login page show up in SailfishOS SDK master
Michael Hasselmann [Wed, 6 Mar 2013 22:32:14 +0000 (23:32 +0100)]
UI: Make login page show up in SailfishOS SDK

Replaced Harmattan Qt Components with Sailfish Silica Components (main.qml,
MainPage.qml). Buttons don't seem to work yet. And it looks weird.

5 years agoBuild: Remove miniature-game library build
Michael Hasselmann [Wed, 6 Mar 2013 21:29:39 +0000 (22:29 +0100)]
Build: Remove miniature-game library build

SDKs for mobile don't seem to expect applications to be split into libraries
and executables so let's just forget about libraries. Simplifies build, too.

Also get rid of debian packaging (git submodule), because:
1. It's a bit unlikely I'll ever update the Miniature package for MeeGo
2. I want to get Miniature running (and at some point, packaged) on (for)
   Sailfish OS.

6 years agoFixes: Forgot trailing slash when installing icon on Fremantle
Michael Hasselmann [Fri, 11 Nov 2011 19:26:53 +0000 (20:26 +0100)]
Fixes: Forgot trailing slash when installing icon on Fremantle

6 years agoGerman and Italian translations updated. 0.5.0
Quim Gil [Fri, 4 Nov 2011 16:07:14 +0000 (09:07 -0700)]
German and Italian translations updated.

6 years agoFix icon installation path for Fremantle
Michael Hasselmann [Fri, 4 Nov 2011 07:33:14 +0000 (08:33 +0100)]
Fix icon installation path for Fremantle

6 years agoFix wrong project file 0.4.99+0.5rc0
Michael Hasselmann [Wed, 2 Nov 2011 10:40:58 +0000 (11:40 +0100)]
Fix wrong project file

Still included the actually removed Commands::Record - am surprised it compiled
at all.

6 years agoHandle end game reason for mutual draw agreement
Michael Hasselmann [Wed, 2 Nov 2011 07:40:03 +0000 (08:40 +0100)]
Handle end game reason for mutual draw agreement

Some misnamed enum value in Frontend::Miniature and a wrong regex had to be
fixed, too.

6 years agoFactor out game result parsing
Michael Hasselmann [Wed, 2 Nov 2011 07:23:00 +0000 (08:23 +0100)]
Factor out game result parsing

6 years agoAdding support for 20 locales - few files missing.
Quim Gil [Tue, 1 Nov 2011 21:30:29 +0000 (14:30 -0700)]
Adding support for 20 locales - few files missing.

Sorry, for some reason they got out of the previous commit.

6 years agoAdding support for 20 locales for the 0.5 release.
Quim Gil [Tue, 1 Nov 2011 21:26:34 +0000 (14:26 -0700)]
Adding support for 20 locales for the 0.5 release.

6 years agolineheight removed for Maemo compatibility.
Quim Gil [Tue, 1 Nov 2011 05:52:01 +0000 (22:52 -0700)]
lineheight removed for Maemo compatibility.

Also the Test Mode button has been commented since we are approaching
the 0.5 release.

6 years agoFixes: BMO#12470 - Check mate needs to be parsed and processed in Miniature
Michael Hasselmann [Tue, 1 Nov 2011 01:33:18 +0000 (02:33 +0100)]
Fixes: BMO#12470 - Check mate needs to be parsed and processed in Miniature

Checkmate handling was already there, but string comparison was incorrect.

6 years agoDon't glue follow-up messages together
Michael Hasselmann [Tue, 1 Nov 2011 01:22:39 +0000 (02:22 +0100)]
Don't glue follow-up messages together

6 years agoFixes: BMO#12426 - Miniature doesn't handle draw requests
Michael Hasselmann [Tue, 1 Nov 2011 01:11:18 +0000 (02:11 +0100)]
Fixes: BMO#12426 - Miniature doesn't handle draw requests

Draws can be proposed, accepted and rejected from either side, and Miniature
will handle it. Additionally, if the remote side rejects a draw, it will be
shown in the message log. If the local side rejects a draw, the remote side
will be informed, too.

6 years agoWire GameResolution command into Miniature
Michael Hasselmann [Mon, 31 Oct 2011 23:56:10 +0000 (00:56 +0100)]
Wire GameResolution command into Miniature

Also added propose/acceptGameResolution to AbstractEngine interface. Had to fix
QML UI as it used wrong strings to compare dialog outcome.

6 years agoAdd GameResolution command
Michael Hasselmann [Mon, 31 Oct 2011 22:22:00 +0000 (23:22 +0100)]
Add GameResolution command

6 years agoAdd dummy API for game resolutions
Michael Hasselmann [Mon, 31 Oct 2011 22:08:27 +0000 (23:08 +0100)]
Add dummy API for game resolutions

Frontend::Miniature has methods and slots for acceptGameResolution and
proposeGameResolution, though not functional yet.

6 years agoRemove dead code and finish documention for Frontend::Miniature
Michael Hasselmann [Mon, 31 Oct 2011 21:10:12 +0000 (22:10 +0100)]
Remove dead code and finish documention for Frontend::Miniature

Command::Record was not used, so I removed it.

Class documentation now mentions each root context and its intended use. Public
API of Frontend::Miniature should be (and stay) fully documented now.

6 years agoMake Dispatcher requirement for engines explicit
Michael Hasselmann [Mon, 31 Oct 2011 18:48:23 +0000 (19:48 +0100)]
Make Dispatcher requirement for engines explicit

Both CommandLine and FICS engine use the Dispatcher to send commands from the
engine to other Miniature components, so I think it only makes sense to have
setDispatcher in the AbstractEngine API.

Nice side effect: If no dispatcher is set, we can assume an engine is disabled.
This allowed me to remove setEnabled API.

Of course, with the dispatcher parameter being removed from the c'tor, engine
instance are now (nearly) trivial to construct.

6 years agoCleanup Game::AbstractEngine interface and fix documentation
Michael Hasselmann [Mon, 31 Oct 2011 18:09:04 +0000 (19:09 +0100)]
Cleanup Game::AbstractEngine interface and fix documentation

Use readData (was: processToken) and writeData (new) to indicate
Miniature-engine communication. The latter proved to be useful in tests (that
is, being able to intercept messages Miniature eventually *would* send to the
engine), so I decided to make it a general part of the API, especially as it
represents the formerly missing Miniature-engine direction so nicely.

That being said, engines could still be read-only or write-only by choosing to
ignore read or write requests.

Also fixed class documentation to indicate our assumptions about Miniature
chess engines, namely that they usually come with a text stream interface.
This is true for Gnuchess and FICS at least.

Each method now states the communication direction (to/from engine).

6 years agoFixes: BMO#12351 - Make move confirmation an option or remove it
Michael Hasselmann [Mon, 31 Oct 2011 01:43:31 +0000 (02:43 +0100)]
Fixes: BMO#12351 - Make move confirmation an option or remove it

When games get created, we now extract the game mode (blitz, lightning,
standard). This is exposed to the QML UI. It can then use the new
autoConfirmMoveEnabled property to control the behaviour.

6 years agoFixes: BMO#12435 - Miniature should recognize games forfeited on time
Michael Hasselmann [Mon, 31 Oct 2011 00:17:58 +0000 (01:17 +0100)]
Fixes: BMO#12435 - Miniature should recognize games forfeited on time

Refined catch-all for game-ended messages from FICS to recognize when time ran

6 years agoInstall to /opt by default
Michael Hasselmann [Sun, 30 Oct 2011 21:10:54 +0000 (22:10 +0100)]
Install to /opt by default

Installing to /opt is good practice for both Fremantle and Harmattan so it
makes to choose it as default install prefix.

6 years agoFix crash when leaving Miniature with empty message log
Michael Hasselmann [Sun, 30 Oct 2011 20:47:15 +0000 (21:47 +0100)]
Fix crash when leaving Miniature with empty message log

6 years agoSet rpath in Miniature binary when prefix is not empty
Michael Hasselmann [Sun, 30 Oct 2011 20:28:02 +0000 (21:28 +0100)]
Set rpath in Miniature binary when prefix is not empty

6 years agoFix install paths to honour install prefix
Michael Hasselmann [Sun, 30 Oct 2011 20:03:36 +0000 (21:03 +0100)]
Fix install paths to honour install prefix

6 years agoRemoving rating from new seek as well ref BMO#12469.
Quim Gil [Thu, 20 Oct 2011 14:44:57 +0000 (07:44 -0700)]
Removing rating from new seek as well ref BMO#12469.

6 years agoFixes: BMO#12408 - Some registered users can't play Miniature as white
Michael Hasselmann [Wed, 19 Oct 2011 19:09:00 +0000 (21:09 +0200)]
Fixes: BMO#12408 - Some registered users can't play Miniature as white

Forgot to normalize username and returned player name to lowercase, of course
FICS accepts case-insensitive usernames ...

6 years agoFix FICS tests
Michael Hasselmann [Mon, 17 Oct 2011 02:20:49 +0000 (04:20 +0200)]
Fix FICS tests

Broke due to new autoflag setting.

6 years agoUser rating removed since it might give wrong value before playing - see
Quim Gil [Wed, 19 Oct 2011 16:33:49 +0000 (09:33 -0700)]
User rating removed since it might give wrong value before playing - see

6 years agoCommenting rating adjustments for end game dialog since we are not
Quim Gil [Wed, 19 Oct 2011 15:44:48 +0000 (08:44 -0700)]
Commenting rating adjustments for end game dialog since we are not
calculating them in 0.5.

6 years agoShowing "++++" instead of "0" in guest players' rating.
Quim Gil [Wed, 19 Oct 2011 15:26:18 +0000 (08:26 -0700)]
Showing "++++" instead of "0" in guest players' rating.

6 years agoFixes: BMO#12359 - Miniature FICS user must fill id & password every time
Michael Hasselmann [Mon, 17 Oct 2011 02:09:54 +0000 (04:09 +0200)]
Fixes: BMO#12359 - Miniature FICS user must fill id & password every time

Use QSettings to store username and password after each successful (registered)
login. Exposed to QML UI through Miniature::storedUsername,
Miniature::storedPassword properties.

6 years agoFixes: BMO#12394 - Miniature should set autoflag 1 automatically
Michael Hasselmann [Mon, 17 Oct 2011 01:24:41 +0000 (03:24 +0200)]
Fixes: BMO#12394 - Miniature should set autoflag 1 automatically

6 years agoRemove login debug output
Michael Hasselmann [Mon, 17 Oct 2011 01:17:48 +0000 (03:17 +0200)]
Remove login debug output

6 years agoFixes: BMO#12464 - Seeks of players with <1000 points are not listed
Michael Hasselmann [Mon, 17 Oct 2011 01:01:39 +0000 (03:01 +0200)]
Fixes: BMO#12464 - Seeks of players with <1000 points are not listed

FICS engine only parsed 4-digit rankings (who expects such whitespace padding
in 2011 anyway). Fixed regular expression and also added test for
Game::Frontend::AvailableSeeks model.

6 years agoShorten FICS tests even further
Michael Hasselmann [Sun, 16 Oct 2011 17:29:03 +0000 (19:29 +0200)]
Shorten FICS tests even further

Executing a move in a scenario apparently follows a pattern, which I now
encapsulated behind execMove.

6 years agoWrap common test setup within a Setup class
Michael Hasselmann [Sun, 16 Oct 2011 16:45:07 +0000 (18:45 +0200)]
Wrap common test setup within a Setup class

I personally see no need for setup/teardown functionality provided by a testing
framework, as it is trivial to control this aspect yourself.

6 years agoRemove the annoying test prefixes from tests
Michael Hasselmann [Sun, 16 Oct 2011 15:04:43 +0000 (17:04 +0200)]
Remove the annoying test prefixes from tests

6 years agoFixes: BMO#12420 - Miniature crashes on closing the application from recents view
Michael Hasselmann [Sat, 15 Oct 2011 23:53:47 +0000 (01:53 +0200)]
Fixes: BMO#12420 - Miniature crashes on closing the application from recents view

Qt steals ownership of the top-level widget, which is a QDeclarativeView owned
by the Miniature instance. By leaking the QDeclaritiveView instance (sigh), we
can make the stubborn Qt happy.

6 years agoHandle install prefix and install properly on Maemo5
Michael Hasselmann [Fri, 14 Oct 2011 00:51:41 +0000 (02:51 +0200)]
Handle install prefix and install properly on Maemo5

6 years agoQuit app if QML engine quits
Michael Hasselmann [Fri, 14 Oct 2011 00:47:34 +0000 (02:47 +0200)]
Quit app if QML engine quits

6 years agoFixes BMO#12390 - Make last turn visible.
Quim Gil [Thu, 13 Oct 2011 06:03:36 +0000 (23:03 -0700)]
Fixes BMO#12390 - Make last turn visible.

Finishing the work started by mikhas. Now the last move squares are
highlighted only with a colored margen. Enough to be seen without

6 years agoFixes: BMO#12377 - [TASK] Don't hardcode chessboard colors in backend
Michael Hasselmann [Wed, 12 Oct 2011 23:57:29 +0000 (01:57 +0200)]
Fixes: BMO#12377 - [TASK] Don't hardcode chessboard colors in backend

Instead of SquareColor, the chessboard model now uses SquareStyle: MoveOrigin,
MoveTarget, LastOrigin and LastTarget (all exported as Miniature enums).

6 years agoIntegrating en_US, es & de strings from Transifex.
Quim Gil [Thu, 13 Oct 2011 00:06:44 +0000 (17:06 -0700)]
Integrating en_US, es & de strings from Transifex.

Still work in progress, but good enough for the Germans in the team to
see how the strings look like.  ;)

6 years agoMaking "Miniature" and "0.5" not translatable in MainPage.
Quim Gil [Wed, 12 Oct 2011 19:49:28 +0000 (12:49 -0700)]
Making "Miniature" and "0.5" not translatable in MainPage.

6 years agoTest castling with FICS engine
Michael Hasselmann [Tue, 11 Oct 2011 15:56:40 +0000 (17:56 +0200)]
Test castling with FICS engine

6 years agoPrint warning when given response does not match expected response, for a scenario
Michael Hasselmann [Tue, 11 Oct 2011 15:40:29 +0000 (17:40 +0200)]
Print warning when given response does not match expected response, for a scenario

6 years agoUse dummy player info in test mode
Michael Hasselmann [Tue, 11 Oct 2011 01:42:45 +0000 (03:42 +0200)]
Use dummy player info in test mode

6 years agoFix last move indicator
Michael Hasselmann [Tue, 11 Oct 2011 08:26:35 +0000 (10:26 +0200)]
Fix last move indicator

Was adjusting the chessboard index one time too often so that I ended up
comparing against the inverse index of the last move (which only takes effect
when reversing colors).

6 years agoMiniature 0.5 string freeze - updating ts file.
Quim Gil [Tue, 11 Oct 2011 19:31:16 +0000 (12:31 -0700)]
Miniature 0.5 string freeze - updating ts file.

6 years agoFixes BMO#7867 - Display shouldn't dim while playing a game
Quim Gil [Tue, 11 Oct 2011 06:19:25 +0000 (23:19 -0700)]
Fixes BMO#7867 - Display shouldn't dim while playing a game

6 years agoFixes: BMO#12390 - Make last turn visible
Michael Hasselmann [Mon, 10 Oct 2011 22:39:08 +0000 (00:39 +0200)]
Fixes: BMO#12390 - Make last turn visible

Highlight squares of last move with different square colors.

6 years agoUpdate git ignore list to filter gcov files
Michael Hasselmann [Mon, 10 Oct 2011 22:39:03 +0000 (00:39 +0200)]
Update git ignore list to filter gcov files

6 years agoAdd code coverage option to build system
Michael Hasselmann [Thu, 6 Oct 2011 23:50:10 +0000 (01:50 +0200)]
Add code coverage option to build system

6 years agoSizes of squares and pieces are now dinamically calculated.
Quim Gil [Mon, 10 Oct 2011 22:52:01 +0000 (15:52 -0700)]
Sizes of squares and pieces are now dinamically calculated.

I also tried to change the png figures for the original svtg images but
for some reason they render very bad.

6 years agoFixes BMO#12419 - About Miniature dialog: "i" button is hiding a part of
Quim Gil [Mon, 10 Oct 2011 21:48:46 +0000 (14:48 -0700)]
Fixes BMO#12419 - About Miniature dialog: "i" button is hiding a part of
a link

6 years agoFixes BMO#12455 - Miniature chat area use is not obvious
Quim Gil [Mon, 10 Oct 2011 19:13:46 +0000 (12:13 -0700)]
Fixes BMO#12455 - Miniature chat area use is not obvious

"Tap to chat" text appears while there are no chat messages. It
disappears as soon as the local or remote side post something.

6 years agoRemoved "Rematch" option in back menu, out of scope in 0.5.
Quim Gil [Mon, 10 Oct 2011 05:55:19 +0000 (22:55 -0700)]
Removed "Rematch" option in back menu, out of scope in 0.5.

Now the "back" icon shows a menu if the game is ongoing and leads
directly to SeekGame if the game is over.

6 years agoMinor fix in previous commit.
Quim Gil [Sat, 8 Oct 2011 07:24:20 +0000 (00:24 -0700)]
Minor fix in previous commit.

6 years agoAdding Miniature.ReasonTimeForfeit condition & string.
Quim Gil [Sat, 8 Oct 2011 07:21:48 +0000 (00:21 -0700)]
Adding Miniature.ReasonTimeForfeit condition & string.

6 years agoCommenting Adjourn and Abort request from Back menu - out of scope in
Quim Gil [Sat, 8 Oct 2011 07:06:39 +0000 (00:06 -0700)]
Commenting Adjourn and Abort request from Back menu - out of scope in

6 years agoSplit Scenario's play into play and respond
Michael Hasselmann [Thu, 6 Oct 2011 23:21:18 +0000 (01:21 +0200)]
Split Scenario's play into play and respond

Make it more explicit that Scenario::play plays the canned data to the engine
until it encounters a WAIT_FOR_INPUT token. You then have to answer with the
right response, through Scenario::respond. Only if it matches the expected
response, you will be able to continue the scenario by calling Scenario::play

If the response is wrong, the current scenario will be considered to have
failed. Scenario::finished will return true if a scenario has either failed or
was completed, which makes it suitable as the loop invariant, whereas
Scenario::result tells you if the scenario passed.

So Scenario::finished == true and Scenario::result == Passed means a scenario
was successful.

Also added this to Scenario class documentation.

6 years agoRemove obsolete FICS parsing tests
Michael Hasselmann [Thu, 6 Oct 2011 02:19:01 +0000 (04:19 +0200)]
Remove obsolete FICS parsing tests

Replaced by scenario-based testing, which is much more complete and actually
tests the whole roundtrip frontend-backend.

6 years agoAdd scenario for a simple game
Michael Hasselmann [Thu, 6 Oct 2011 02:05:32 +0000 (04:05 +0200)]
Add scenario for a simple game

Also realized that the two login scenarios needed a small fix.

6 years agoFix Scenario's computation of expected responses
Michael Hasselmann [Thu, 6 Oct 2011 02:08:00 +0000 (04:08 +0200)]
Fix Scenario's computation of expected responses

Had to fix the case where WAIT_FOR_INPUT is followed by another WAIT_FOR_INPUT
on next line.

6 years agoAdd scenario for registered login
Michael Hasselmann [Wed, 5 Oct 2011 23:51:20 +0000 (01:51 +0200)]
Add scenario for registered login

6 years agoReorder Fics::Engine code to increase testability
Michael Hasselmann [Wed, 5 Oct 2011 23:39:09 +0000 (01:39 +0200)]
Reorder Fics::Engine code to increase testability

Changes required to test failed logins properly.

6 years agoSimplify FICS login test
Michael Hasselmann [Wed, 5 Oct 2011 21:34:41 +0000 (23:34 +0200)]
Simplify FICS login test

6 years agoFix colon hack for scenario test data
Michael Hasselmann [Wed, 5 Oct 2011 00:28:03 +0000 (02:28 +0200)]
Fix colon hack for scenario test data

6 years agoUse \n to explicitly encode newlines in scenario's expected responses
Michael Hasselmann [Wed, 5 Oct 2011 00:21:10 +0000 (02:21 +0200)]
Use \n to explicitly encode newlines in scenario's expected responses

6 years agoFeed engine's responses into scenario
Michael Hasselmann [Tue, 4 Oct 2011 02:49:42 +0000 (04:49 +0200)]
Feed engine's responses into scenario

6 years agoAllow tests to intercept data that would have otherwise been send to FICS
Michael Hasselmann [Tue, 4 Oct 2011 01:54:50 +0000 (03:54 +0200)]
Allow tests to intercept data that would have otherwise been send to FICS

6 years agoAlso check responses for scenario
Michael Hasselmann [Tue, 4 Oct 2011 01:37:42 +0000 (03:37 +0200)]
Also check responses for scenario

6 years agoAllow to disable channel to FICS
Michael Hasselmann [Mon, 3 Oct 2011 16:27:25 +0000 (18:27 +0200)]
Allow to disable channel to FICS

6 years agoModify login scenario data to not include colons for certain tokens
Michael Hasselmann [Mon, 3 Oct 2011 16:25:40 +0000 (18:25 +0200)]
Modify login scenario data to not include colons for certain tokens

6 years agoUse WAIT_FOR_INPUT token instead of newlines to pause a scenario
Michael Hasselmann [Sun, 2 Oct 2011 22:11:50 +0000 (00:11 +0200)]
Use WAIT_FOR_INPUT token instead of newlines to pause a scenario

6 years agoTest FICS login
Michael Hasselmann [Sat, 1 Oct 2011 20:30:17 +0000 (22:30 +0200)]
Test FICS login

6 years agoNew: Helper classes to simulate FICS scenarios
Michael Hasselmann [Sat, 1 Oct 2011 20:29:29 +0000 (22:29 +0200)]
New: Helper classes to simulate FICS scenarios

6 years agoAdd testing API to Frontend::Miniature
Michael Hasselmann [Sat, 1 Oct 2011 20:28:40 +0000 (22:28 +0200)]
Add testing API to Frontend::Miniature

6 years agoString to be used in ChatArea when remot side declines requests.
Quim Gil [Tue, 27 Sep 2011 15:46:23 +0000 (15:46 +0000)]
String to be used in ChatArea when remot side declines requests.

Probably needs to be injected by the backend to the chat model. Puting
it here by now in order to have the translatable string.

6 years agoNew seek dialog is closed when starting a game.
Quim Gil [Mon, 26 Sep 2011 16:07:40 +0000 (16:07 +0000)]
New seek dialog is closed when starting a game.

Otherwise you found it still open after finishing a game when accepting
somebody else's seek with newseekDialog open.

Also trivial: put "Abort" option at the end of the "Back" menu options
since it's the less usual.

6 years agoQueryDialog for draw, adjourn & abort remote requests
Quim Gil [Mon, 26 Sep 2011 15:05:51 +0000 (15:05 +0000)]
QueryDialog for draw, adjourn & abort remote requests

The frontend now expects these pieces to work in the backend:

- Signal RequestReceived
- proposal
- Miniature.ProposedDraw, Miniature.ProposedAdjourn,
- miniature.acceptDraw(), miniature.acceptAdjourn(),

6 years agoMoving the Menu out of the ToolBar to make it behave properly.
Quim Gil [Mon, 26 Sep 2011 10:37:38 +0000 (10:37 +0000)]
Moving the Menu out of the ToolBar to make it behave properly.

Thanks to gri for the tip at !

6 years ago"Back" menu option added & confirmation dialog unified.
Quim Gil [Fri, 23 Sep 2011 15:33:11 +0000 (15:33 +0000)]
"Back" menu option added & confirmation dialog unified.

Added Abort, Adjourn and Draw. Now there is a single confirmation dialog
with different strings depending on the option chosen. The functionality
of the 3 new options still needs to be implemented.

6 years agoChanged the strings with player names according to Qt
Quim Gil [Fri, 23 Sep 2011 13:19:44 +0000 (13:19 +0000)]
Changed the strings with player names according to Qt

Merge request from Christoph Keller accepted. Thank you!

6 years agoUploading miniature.ts for Transifex and cleaning up old i18n files.
Quim Gil [Thu, 22 Sep 2011 06:13:39 +0000 (23:13 -0700)]
Uploading miniature.ts for Transifex and cleaning up old i18n files.

6 years agoi18n enabled and tested with en & es locales.
Quim Gil [Thu, 22 Sep 2011 05:52:13 +0000 (22:52 -0700)]
i18n enabled and tested with en & es locales.

Following the instructions at

6 years agoFirst patch to implement i18n.
Quim Gil [Wed, 21 Sep 2011 16:11:21 +0000 (16:11 +0000)]
First patch to implement i18n.

However, the Spanish strings don't show up in the N9 booted with es_ES
locale. Qt Linguist identifies the .ts file as es_ES as well. Need to
check further what is going on. Committing to share with others. The app
works in English as usual, no regressions.

6 years agoCorrecting gameoverDialog algorythm and cleaning out unused code.
Quim Gil [Tue, 20 Sep 2011 15:47:17 +0000 (15:47 +0000)]
Correcting gameoverDialog algorythm and cleaning out unused code.

6 years agoImprovements in gameoverDialog.
Quim Gil [Mon, 19 Sep 2011 16:18:56 +0000 (16:18 +0000)]
Improvements in gameoverDialog.

- Result is always the text now, and it is explained from the user point
of view ("You win!" instead of "White wins").
- Reason is always starting the description.
- Ratings adjustments are explained - PENDING: variable for new rating
is missing.

6 years agoEnd game dialogs overlap only the board.
Quim Gil [Mon, 19 Sep 2011 14:51:22 +0000 (14:51 +0000)]
End game dialogs overlap only the board.

- Keeps the possibility of chatting with opponent at any time.
- They are 0.8 opaque now.

6 years agoBringing back the Testing Mode button.
Quim Gil [Mon, 19 Sep 2011 12:42:47 +0000 (12:42 +0000)]
Bringing back the Testing Mode button.

Now Testing Off is default, but the button is stillm useful to remind
you that you are using a version from master.

6 years agoFix catch-all for ending games 0.4.0
Michael Hasselmann [Tue, 13 Sep 2011 18:41:51 +0000 (20:41 +0200)]
Fix catch-all for ending games

Cannot expect to get valid game result for all game ending scenarios. Now
catch-all also matches game-creating messages, so had to harden token
processing: Once a token was recognized and properly processed, we mark it as
such. This prevents the same token from being processed twice (by different

6 years agoFix rating label in OnlineBoard
Michael Hasselmann [Tue, 13 Sep 2011 18:39:49 +0000 (20:39 +0200)]
Fix rating label in OnlineBoard

6 years agoBack to SeekGame after resigning a game.
Quim Gil [Tue, 13 Sep 2011 11:20:23 +0000 (11:20 +0000)]
Back to SeekGame after resigning a game.

6 years agoFixes: BMO#12382 - Miniature doesn't handle end games
Michael Hasselmann [Tue, 13 Sep 2011 17:38:48 +0000 (19:38 +0200)]
Fixes: BMO#12382 - Miniature doesn't handle end games

Handle game endings through a catch-all, seems to work fine with the common
situations. Also implemented resigning games, for local player.

6 years agoDefauting to FicsMode and removing testing related UI for 0.4 release.
Quim Gil [Tue, 13 Sep 2011 11:00:01 +0000 (11:00 +0000)]
Defauting to FicsMode and removing testing related UI for 0.4 release.

6 years agoRated games now show up as rated in SeekGame.
Quim Gil [Tue, 13 Sep 2011 10:35:32 +0000 (10:35 +0000)]
Rated games now show up as rated in SeekGame.

6 years agoStore whether game is rated, when creating game
Michael Hasselmann [Tue, 13 Sep 2011 16:51:58 +0000 (18:51 +0200)]
Store whether game is rated, when creating game