Commit Graph

441 Commits

Author SHA1 Message Date
Peter Osterlund
500b16dc8f DroidFish: Don't let a buggy engine play a null move. 2017-09-24 03:38:06 +02:00
Peter Osterlund
f1e62c5263 DroidFish: Avoid crash if asked to speak a null move. 2017-09-24 01:11:44 +02:00
Peter Osterlund
45a8bee002 DroidFish: Made it easier to disable the opening book. 2017-09-23 23:52:49 +02:00
Peter Osterlund
e51c86f621 DroidFish: Don't crash if the engine wants to play an invalid move. 2017-06-11 22:37:01 +02:00
Peter Osterlund
97662f067e DroidFish: Secure FEN reader against division by zero. 2017-06-11 21:20:19 +02:00
Peter Osterlund
9aa9279366 DroidFish: Fixed crash due to division by zero.
Fixed crash that could happen when reading a PGN file at the same time
as another process was writing to the file.
2017-06-11 21:14:15 +02:00
Peter Osterlund
2260f19cc8 DroidFish: Fixed crash in android 7 when handling large PGN games. 2017-06-10 21:21:03 +02:00
Peter Osterlund
91ef1ec8bf DroidFish: Added support for multi windows in android 7. 2017-05-27 13:30:21 +02:00
Peter Osterlund
ce800d9beb DroidFish: Make sure a too large string is not passed to the edit board
activity.
2017-05-27 00:09:14 +02:00
Peter Osterlund
94c9d914ac DroidFish: Fixed bug in 055322 causing small values not to be displayed. 2017-05-26 23:19:36 +02:00
Peter Osterlund
76d79ef7a8 DroidFish: Fixed race condition when canceling a progress dialog. 2017-05-26 15:50:06 +02:00
Peter Osterlund
1141efca4f DroidFish: Fixed compiler warnings. 2017-05-26 13:41:39 +02:00
Peter Osterlund
6e4733bf41 DroidFish: Improved text to speech output. 2017-05-26 10:55:41 +02:00
Peter Osterlund
e065656b6c DroidFish: Removed move cache from MoveGen.
This cache was not thread safe and was not used much anyway. (Leftover
from CuckooChess move generator.)
2017-05-26 00:41:04 +02:00
Peter Osterlund
1ce7d2298e DroidFish: Fixed possible NPE when reading scid database. 2017-05-25 20:36:09 +02:00
Peter Osterlund
987e0d7d3e DroidFish: Fixed stack overflow in request permission handling. 2017-05-25 19:56:24 +02:00
Peter Osterlund
b5cc492c38 DroidFish: Fixed crash when receiving an incorrect PGN intent. 2017-05-25 19:38:49 +02:00
Peter Osterlund
0553222853 DroidFish: Use 'G' prefix for values larger than 1e11. 2017-05-25 11:09:19 +02:00
Peter Osterlund
9480603ddb DroidFish: Don't do network communication on main thread. 2017-04-22 09:22:39 +02:00
Peter Osterlund
b8aaa215d3 DroidFish: Use 'M' prefix for NPS values larger than 1e8. 2017-04-22 07:32:13 +02:00
Peter Osterlund
92cd27724a Removed redundant public access modifier for interface methods. 2017-02-13 08:54:02 +01:00
Peter Osterlund
698e5c203d DroidFish: Fixed build of eco.dat on platforms where UTF-8 is not
standard.
2017-02-04 08:14:05 +01:00
Peter Osterlund
b79179a1dc DroidFish: Fixed NPE in speech synthesis code. 2017-01-31 22:26:16 +01:00
Peter Osterlund
91c6a39bb7 DroidFish: Fixed potential null pointer dereferences. 2017-01-19 22:58:15 +01:00
Peter Osterlund
1011506cea DroidFish: Improved opening names. 2017-01-09 22:07:04 +01:00
Peter Osterlund
58a5e19ba4 DroidFish: Source code rearrangement. 2017-01-08 09:46:25 +01:00
Peter Osterlund
74fdfaf9b1 DroidFish: Toggling large buttons could affect display of game headers. 2017-01-07 16:31:38 +01:00
Peter Osterlund
a612d06a0b DroidFish: Removed incorrect comment. 2017-01-06 07:01:29 +01:00
Peter Osterlund
827febd8e1 DroidFish: Improved Spanish text to speech. 2017-01-01 20:44:39 +01:00
Peter Osterlund
bd586b9ea9 DroidFish: Spanish text to speech support. 2017-01-01 14:36:15 +01:00
Peter Osterlund
140b4957fe DroidFish: Workaround for bug in Samsung text to speech implementation. 2017-01-01 13:03:11 +01:00
Peter Osterlund
f211786b74 DroidFish: Fixed out of memory error when receiving large PGN files.
If receiving a large PGN file as a content stream from another app,
store the data in a temporary file instead of reading it all into
memory.

This also makes content containing more than one game work correctly by
letting the user select which game to open.
2016-12-27 14:12:45 +01:00
Peter Osterlund
5c6b1408f4 DroidFish: Only play the announcement sound if the TTS engine is idle. 2016-12-27 08:26:30 +01:00
Peter Osterlund
c34b04903a DroidFish: Improved text to speech output.
* If the previous speech is not finished when a new move is made, queue
the new speech instead of interrupting the old speech.

* Play the regular move sound before speaking the move, to get the human
attention before the speech starts.

* Added a menu item to the board menu to repeat the last move.
2016-12-27 01:08:45 +01:00
Peter Osterlund
72f940de01 DroidFish: Made it possible to set result when editing headers. 2016-12-26 23:54:40 +01:00
Peter Osterlund
ecb078c205 DroidFish: German text to speech support. 2016-12-26 00:41:06 +01:00
Peter Osterlund
c43e5656d7 DroidFish: Added missing copyright headers. 2016-12-25 23:06:14 +01:00
Peter Osterlund
b73f1d477b DroidFish: A mating move could be added more than once to the game tree. 2016-12-25 21:38:25 +01:00
Peter Osterlund
1808bbb10c Removed useless comments. 2016-12-25 13:20:14 +01:00
Peter Osterlund
0c33791ddd DroidFish: English text to speech support for announcing moves. 2016-12-25 11:48:04 +01:00
Peter Osterlund
38295b516f DroidFish: Fixed confusing code. 2016-12-24 06:40:27 +01:00
Peter Osterlund
595cb247ae DroidFish: Remember previous scroll location in preferences. 2016-12-23 21:17:07 +01:00
Peter Osterlund
be610c97f4 DroidFish: Small improvement in engine input handling. 2016-12-23 17:40:37 +01:00
Peter Osterlund
5ee35e62d5 DroidFish: Truncate long PV lines by default. 2016-12-23 10:32:40 +01:00
Peter Osterlund
82c06be06b DroidFish: Limit the maximum size of the engine to GUI receive buffer.
This prevents out of memory crashes when using a network engine
connected to a 24 core machine running in MultiPV=100 mode.
2016-12-22 23:41:12 +01:00
Peter Osterlund
ec63491303 DroidFish: When sharing an image, share only the chessboard. 2016-12-21 20:34:54 +01:00
Peter Osterlund
af9b505e87 DroidFish: Better handling of large amounts of data from the engine. 2016-12-19 23:02:13 +01:00
Peter Osterlund
97160698a9 DroidFish: Fixed intent handling in low memory situations.
Lifecycle handling was wrong, causing the received activity intent to be
reprocessed if the activity was recreated after a previous low memory
situation.

This problem could be triggered by enabling "Don't keep activities" in
developer options and sending a pgn file intent to DroidFish.
2016-12-19 21:40:30 +01:00
Peter Osterlund
4f3903092c DroidFish: Made it easier to change number of variations (MultiPV). 2016-12-19 00:30:21 +01:00
Peter Osterlund
ae5f947b13 DroidFish: In edit board mode, use the same orientation as in game play. 2016-12-17 11:23:51 +01:00