Commit Graph

297 Commits

Author SHA1 Message Date
Peter Osterlund
b88ca87867 DroidFish: Avoid crash if "Scid on the go" misbehaves. 2012-09-28 17:03:11 +00:00
Peter Osterlund
87e38eca80 DroidFish: Better layout for edit board in landscape mode. 2012-09-22 11:27:12 +00:00
Peter Osterlund
0456c02cf9 DroidFish: Don't use recursion in GameTree.translateMovesHelper(). Recursion can crash with stack overflow error for long pgn games. 2012-09-22 09:04:57 +00:00
Peter Osterlund
04f7d88368 DroidFish: Remove spaces in time control string, to save space on the title bar. 2012-09-21 19:47:27 +00:00
Peter Osterlund
75fd15d3bf DroidFish: Use custom title bar also for edit board mode. Most title bar widgets are hidden though. 2012-09-21 19:39:29 +00:00
Peter Osterlund
9e44414235 DroidFish: Left-handed layout mode did not work if droidfish was started in landscape mode. Layout was not updated immediately when handedness was changed in preferences. 2012-09-21 19:25:35 +00:00
Peter Osterlund
a224defe3f DroidFish: Support full-screen mode in edit board activity. 2012-09-21 18:34:46 +00:00
Peter Osterlund
b4736fe3dc DroidFish: Align the chess board to the top of its drawing area in landscape mode. Makes it aligned with the new non-full-width title bar. 2012-09-21 17:57:34 +00:00
Peter Osterlund
2a551d694d DroidFish: Menu button in edit board mode now shows the same menu as when long pressing the board. From Leo Mayer. 2012-09-21 17:42:00 +00:00
Peter Osterlund
f0035a6690 DroidFish: Moved computation of material difference to the Util class, so that it can be reused by the EditBoard activity. 2012-09-19 18:11:53 +00:00
Peter Osterlund
aa0cc399bc DroidFish: Optional second title line with captured piece information and time control information. Implemented by Leo Mayer, with some changes by me. 2012-09-19 16:23:32 +00:00
Peter Osterlund
3f911220c2 DroidFish: Cosmetic change. 2012-09-17 22:12:20 +00:00
Peter Osterlund
41e7a6922c DroidFish: Reduced opening book memory usage. 2012-09-11 22:44:49 +00:00
Peter Osterlund
1767f8c947 DroidFish: Moved code in ChessBoard.java that is not used by ChessBoardEdit.java to new class ChessBoardPlay. 2012-09-10 21:46:24 +00:00
Peter Osterlund
9810c3d054 DroidFish: Display error message if trying to use a slash (/) character in network engine names. 2012-09-08 14:35:47 +00:00
Peter Osterlund
06ee386923 DroidFish: Better text in "manage chess engines" menu. 2012-09-07 19:39:24 +00:00
Peter Osterlund
3d12ab7f59 DroidFish: Don't start the white clock in the initial position. It is not nice that the clock starts running immediately when you first start the program. 2012-09-02 07:54:44 +00:00
Peter Osterlund
7bbf888eb1 DroidFish: Added preference setting to choose between "sticky" and "toggle" mode for selecting squares. 2012-09-02 01:44:41 +00:00
Peter Osterlund
21fa9d1522 DroidFish: When "quick move input" is enabled and the user taps on a piece that has no valid moves, display a toast that explains that the piece can not be moved. Idea from Leo Mayer. 2012-09-02 00:08:03 +00:00
Peter Osterlund
b66acc006f DroidFish: Simplified navigation between engine management dialogs. 2012-09-01 23:17:02 +00:00
Peter Osterlund
a1b7f6688b DroidFish: Ask for confirmation before deleting network engine. 2012-09-01 22:04:04 +00:00
Peter Osterlund
447e8de9c7 DroidFish: Cosmetic changes. 2012-09-01 21:15:48 +00:00
Peter Osterlund
7fd384ac7b DroidFish: Split the DroidFish.onCreateDialog function into one function per dialog type. 2012-09-01 20:27:46 +00:00
Peter Osterlund
7967615386 DroidFish: Use k and M prefixes for nodes and nodes/second in the engine status information. 2012-09-01 18:59:43 +00:00
Peter Osterlund
2798f59554 DroidFish: Added color picker code from Daniel Nilsson and Sergey Margaritov, adapted to DroidFish by Leo Mayer. 2012-08-31 23:38:12 +00:00
Peter Osterlund
37b82a8e11 DroidFish: Fixed incorrect comment. From Leo Mayer. 2012-08-31 23:22:54 +00:00
Peter Osterlund
ad349a36b1 DroidFish: Don't use largest font size for status text in portrait mode. 2012-08-31 23:09:44 +00:00
Peter Osterlund
b0a2f9f317 DroidFish: Better font for figurine notation. From Leo Mayer. 2012-08-28 17:34:57 +00:00
Peter Osterlund
37610d8297 DroidFish: Preliminary support for figurine chess notation. From Leo Mayer, with some small changes by me. 2012-08-27 18:14:10 +00:00
Peter Osterlund
feb5fabb22 DroidFish: Made it possible to configure more than one network engine. 2012-08-26 22:00:27 +00:00
Peter Osterlund
7f5718ccb2 DroidFish: In analysis mode, don't show the strength setting in the title bar. Strength is always 100% in analysis mode. 2012-08-26 15:28:58 +00:00
Peter Osterlund
1f01daf133 DroidFish: Improved "one touch move" behavior. Based on patch from Leo Mayer. 2012-08-26 13:34:54 +00:00
Peter Osterlund
db704232df DroidFish: Fixed NPE when shutting down program while trying to contact a network engine. 2012-08-19 16:17:28 +00:00
Peter Osterlund
31d6c0f768 DroidFish: Use helper function MoveGen.legalMoves(). 2012-08-19 10:21:06 +00:00
Peter Osterlund
5c161d2101 DroidFish: Display chess moves using localized piece names. 2012-08-19 10:05:42 +00:00
Peter Osterlund
986d30991d DroidFish: Improved "flip board based on player name" behavior. From Leo Mayer. 2012-08-17 19:12:25 +00:00
Peter Osterlund
5a7bd52687 DroidFish: Allow using more threads and more hash memory. Useful for network engines. 2012-08-05 19:28:18 +00:00
Peter Osterlund
a7e21224b8 DroidFish: Added support for running the chess engine on a different computer, communicating with it using a network socket. 2012-08-05 18:58:28 +00:00
Peter Osterlund
04f1225d3e DroidFish: Made it possible to change the engine hash table size. 2012-07-24 01:04:43 +00:00
Peter Osterlund
29f0b8766c DroidFish: Simplified TextIO.isValid() method. 2012-07-22 09:30:18 +00:00
Peter Osterlund
1f5f5c9522 DroidFish: Fixed crash when engine did not report a ponder move. 2012-07-20 21:38:25 +00:00
Peter Osterlund
210bf89ef8 DroidFish: Disable use of boldface in android 4.1 to work around crash bug, see http://code.google.com/p/android/issues/detail?id=34872. 2012-07-19 11:43:30 +00:00
Peter Osterlund
eba354ea8f DroidFish: Handled PGN file intents with more than one game. 2012-07-16 12:55:33 +00:00
Peter Osterlund
1de1e05025 DroidFish: Implemented function to share a PGN game. 2012-07-16 11:47:29 +00:00
Peter Osterlund
352b54254a DroidFish: Display player names in the title bar when the clocks are not running. 2012-07-16 08:45:57 +00:00
Peter Osterlund
6bf1886e71 DroidFish: Fixed to work with CuckooChess changes. 2012-07-15 11:00:43 +00:00
Peter Osterlund
d95283b1fe DroidFish: When stopping analysis mode by pressing the toggle analysis button, restore the game mode from the last time the toggle analysis button was pressed. 2012-07-14 13:33:00 +00:00
Peter Osterlund
ce5600db80 DroidFish: Fixed crash if engine reported invalid moves in the PV or an invalid ponder move. 2012-07-14 01:14:55 +00:00
Peter Osterlund
41014a5cd8 DroidFish: Small optimization. 2012-06-15 22:19:27 +00:00
Peter Osterlund
62008f45c7 DroidFish: Draw pictures in off-screen bitmaps to prevent crash when "Force GPU rendering" is enabled in android developer options. 2012-06-15 22:06:42 +00:00
Peter Osterlund
ddf86c3ad7 DroidFish: Improved tapping behavior. 2012-06-10 15:01:07 +00:00
Peter Osterlund
10c80e802c DroidFish: Made the large buttons a little smaller when all three custom buttons are visible. 2012-06-10 14:11:09 +00:00
Peter Osterlund
789c734337 DroidFish: Added button touch visual feedback. 2012-06-10 13:30:35 +00:00
Peter Osterlund
4932e44a92 DroidFish: Added a third configurable button. 2012-06-10 08:28:34 +00:00
Peter Osterlund
6540f2f49a DroidFish: Display book move hints in bold face to distinguish them from book move percentages. 2012-06-10 00:22:06 +00:00
Peter Osterlund
a1f960da85 DroidFish: Added icons for all button actions. 2012-06-09 23:53:51 +00:00
Peter Osterlund
e0ae12e7f8 DroidFish: Disabled logging in SVG parser. 2012-06-09 22:40:58 +00:00
Peter Osterlund
f61785af2d DroidFish: Avoid terminating space character in book info strings. 2012-06-09 22:18:24 +00:00
Peter Osterlund
499ce4e6e4 DroidFish: Use SVG graphics for buttons. Implemented "toggle large buttons" button action. 2012-06-09 20:04:22 +00:00
Peter Osterlund
64d0048222 DroidFish: SVG, added support for gradients on strokes. 2012-06-09 15:32:15 +00:00
Peter Osterlund
b1df438d06 DroidFish: Handle floating point numbers with negative exponent in SVG parser. 2012-06-09 14:52:07 +00:00
Peter Osterlund
bbbb9078cb DroidFish: Handle units in SVG parser for stroke-width attribute. 2012-06-09 14:51:09 +00:00
Peter Osterlund
a857fbc2cd DroidFish: Added support for rounded rectangles in SVG files. 2012-06-09 13:37:32 +00:00
Peter Osterlund
936925dcc4 DroidFish: Avoid NPE if engine sends invalid moves in the PV. 2012-06-07 22:04:21 +00:00
Peter Osterlund
0cfda3577c DroidFish: Ignore "pt" unit when parsing SVG files. 2012-06-07 17:28:32 +00:00
Peter Osterlund
9447c67ce7 DroidFish: Fixed incorrect bounds calculation in SVG code. 2012-06-06 19:57:35 +00:00
Peter Osterlund
436579fe20 DroidFish: Fixed warnings in SVG code. 2012-06-06 19:55:33 +00:00
Peter Osterlund
7c37f8f5ed DroidFish: Added svg-android code for SVG support. See http://code.google.com/p/svg-android/. 2012-06-06 19:50:45 +00:00
Peter Osterlund
026de0610f DroidFish: Longer timeout before reporting engine problem. 2012-06-06 19:43:22 +00:00
Peter Osterlund
7344b26a53 DroidFish: Added support for mips architecture. Requires NDK r8. 2012-05-19 06:42:02 +00:00
Peter Osterlund
ad76eda35b DroidFish: Fixed problems with the "Flip Board: Player" setting. Board flip should be considered when editing the game headers and when changing the player name in preferences. 2012-05-15 17:46:41 +00:00
Peter Osterlund
81bd2a6326 DroidFish: Variation arrows no longer override analysis arrows and book arrows. 2012-05-13 06:49:12 +00:00
Peter Osterlund
95d1e63338 DroidFish: Implemented "toggle engine analysis" button action. 2012-05-13 06:32:36 +00:00
Peter Osterlund
d67f536cf2 DroidFish: Implemented configurable buttons. 2012-05-13 00:26:56 +00:00
Peter Osterlund
1a6d76c5e3 DroidFish: Whitespace fix. 2012-05-12 19:48:21 +00:00
Peter Osterlund
f49809fa7f DroidFish: Don't run GTB initialization and engine startup in parallel. Seems to trigger ICS bug, see http://stackoverflow.com/questions/8688382/runtime-exec-bug-hangs-without-providing-a-process-object. 2012-05-12 18:16:38 +00:00
Peter Osterlund
51278dfc35 DroidFish: Don't reinitialize GTB in onResume(). The performance hit is not worth it. The tradeoff is that you now have to restart the program for new files added to the GTB directory to be recognized. 2012-05-12 17:48:38 +00:00
Peter Osterlund
1c10b740f1 DroidFish: Fixed default value for number of engine threads to match default in preferences.xml. 2012-05-12 17:44:43 +00:00
Peter Osterlund
4753286aeb DroidFish: Preparations for supporting one more button. 2012-05-12 17:42:56 +00:00
Peter Osterlund
1ec674197c DroidFish: Implemented chmod using JNI. More efficient than starting a process. 2012-05-12 17:31:50 +00:00
Peter Osterlund
94f9994fe6 DroidFish: Do GTB initialization in a background thread. 2012-05-12 16:16:38 +00:00
Peter Osterlund
3d7c5c03f8 DroidFish: Removed resource "ok". Android has a built-in resource for this. 2012-05-10 19:35:26 +00:00
Peter Osterlund
77b25099eb DroidFish: Optionally vibrate when the computer makes a move. 2012-05-10 18:36:02 +00:00
Peter Osterlund
00013ebaa9 DroidFish: Updated for new SDK/NDK versions. 2012-05-01 16:53:19 +00:00
Peter Osterlund
1569ac3731 DroidFish: Removed the padding around the chess board. Makes it slightly larger. 2012-04-22 11:23:41 +00:00
Peter Osterlund
91524829f5 DroidFish: Added hint about how to undo/redo single half moves. 2012-04-14 14:46:02 +00:00
Peter Osterlund
fbd7225386 DroidFish: Made "save to pgn file" easier to understand. 2012-04-14 13:25:19 +00:00
Peter Osterlund
14d17d6719 DroidFish: Made it possible to load/save PGN files in any directory, using the "OI file manager". 2012-04-14 12:37:15 +00:00
Peter Osterlund
cc5582bdbc DroidFish: If setting strength to 0% when stockfish engine is used, show a hint that using the CuckooChess engine gives even lower strength. 2012-04-08 16:42:21 +00:00
Peter Osterlund
a0eb057e4a DroidFish: Allow selecting side to play when starting a new game. 2012-04-07 23:46:04 +00:00
Peter Osterlund
9be6394737 DroidFish: Changed default value of "flip board based on player name" setting to "true". 2012-04-07 21:28:21 +00:00
Peter Osterlund
463bbcba20 DroidFish: Added flip board button. 2012-04-07 21:05:05 +00:00
Peter Osterlund
e6e4d6b213 DroidFish: Added support for default player name. 2012-04-07 15:45:34 +00:00
Peter Osterlund
a53834d21e DroidFish: Added preference setting for left-handed landscape mode. 2012-04-07 10:43:12 +00:00
Peter Osterlund
bdd67ce315 DroidFish: Display PGN comments in a color different from PGN moves. 2012-04-07 09:15:44 +00:00
Peter Osterlund
d4ddd88aae DroidFish: Added color themes from scid on the go. 2012-03-04 20:01:47 +00:00
Peter Osterlund
f602cd6448 DroidFish: Updated FIXME list. 2012-03-04 19:04:23 +00:00
Peter Osterlund
43e0f00175 DroidFish: Avoid infinite recursion in SeekBarPreference. 2012-02-14 22:42:50 +00:00
Peter Osterlund
36a9ed45d7 DroidFish: Fixed to make unicode characters display correctly in about dialog. 2012-02-12 20:22:42 +00:00
Peter Osterlund
28b81ddf0e DroidFish: Fixed warning in manifest file. 2012-02-12 09:49:54 +00:00
Peter Osterlund
b97303fd5b DroidFish: Handle PGN intents with scheme "file". 2012-02-05 21:24:59 +00:00
Peter Osterlund
1c1640d73c DroidFish: Ignore leading and trailing whitespace in the TB path. 2012-01-30 18:52:27 +00:00
Peter Osterlund
5e4c179ca7 DroidFish: In "sticky" edit board mode, if the target square already contains the selected piece, clear the square instead of doing nothing. 2012-01-26 18:43:53 +00:00
Peter Osterlund
72b93358af DroidFish: When displaying tablebase info, only display the best score for pawn promotions. 2012-01-26 18:22:16 +00:00
Peter Osterlund
4020384ad6 DroidFish: Avoid null pointer exception in pgn load/save. 2012-01-25 19:04:41 +00:00
Peter Osterlund
905c155270 DroidFish: Use html to format the about dialog text. 2012-01-22 19:22:56 +00:00
Peter Osterlund
4e86b110d3 DroidFish: Changed default value for tablebase root probe setting to true. 2012-01-22 12:48:11 +00:00
Peter Osterlund
7caebc66d5 DroidFish: Made the internal stockfish engine work also on arm v6 architectures. 2012-01-21 20:16:47 +00:00
Peter Osterlund
bbaf130eac DroidFish: Reinitialize tablebases when activity is resumed. 2012-01-21 11:26:51 +00:00
Peter Osterlund
50ef527376 DroidFish: Reinitialize tablebases when activity is started. 2012-01-21 08:51:01 +00:00
Peter Osterlund
27d6b729f0 DroidFish: Fixed problem with CPU notification not going away if program was previously killed by Android to free up memory. 2012-01-21 07:44:28 +00:00
Peter Osterlund
6b7c844df0 DroidFish: Added support for Gaviota endgame tablebases. 2012-01-20 19:14:25 +00:00
Peter Osterlund
e6f63f59e9 DroidFish: Avoid null pointer exception if engine reports that it is currently searching an invalid move. 2012-01-20 19:12:04 +00:00
Peter Osterlund
600b306195 DroidFish: Fixed broken handling of UCI "searchmoves" in the cuckoochess engine. 2012-01-17 23:35:51 +00:00
Peter Osterlund
e4b468d88d DroidFish: Rewrote the cuckoochess communication so that internet permission is no longer needed. 2012-01-15 11:39:23 +00:00
Peter Osterlund
97ff270ee5 DroidFish: Use a prebuilt stockfish engine for Android 1.5, because the version built by the NDK fails to start. 2012-01-15 01:43:08 +00:00
Peter Osterlund
ff40f9adc2 DroidFish: Restored space between engine name and engine strength in the title bar. 2012-01-15 00:52:11 +00:00
Peter Osterlund
43224e4ee7 DroidFish: Start the new engine immediately after it has been selected, even if it is not needed right away. This is less confusing in situations where there is some problem with the engine. 2012-01-08 17:28:10 +00:00
Peter Osterlund
ec8993ba8f DroidFish: Terminate the stderr-reading thread if the external engine crashes. 2012-01-08 17:25:28 +00:00
Peter Osterlund
006e66397e DroidFish: Display an error message when loading an engine that doesn't support the UCI protocol. 2012-01-08 02:39:31 +00:00
Peter Osterlund
40bb41bbca DroidFish: Fixed bug when exporting time information to PGN data. 2012-01-08 01:18:07 +00:00
Peter Osterlund
298d0478de DroidFish: Created method EngineState.setState() to simplify state machine debugging. 2012-01-08 00:32:18 +00:00
Peter Osterlund
b97830c29a DroidFish: Display an error message if an engine is terminated prematurely. 2012-01-07 23:29:51 +00:00
Peter Osterlund
6b04258f95 DroidFish: Don't send UCI options that an engine doesn't understand. 2012-01-07 10:33:20 +00:00
Peter Osterlund
ac10ab3017 DroidFish: Fixed bug in engine title display. 2012-01-07 08:46:15 +00:00
Peter Osterlund
42a71b0ec5 DroidFish: Clarified that not all engine options work for all engines. Display the current engine in the program title bar. 2012-01-07 08:19:14 +00:00
Peter Osterlund
441b6bc59a DroidFish: Disabled the internal stockfish engine on Android 1.5, because it doesn't work there. 2012-01-07 02:54:50 +00:00
Peter Osterlund
bd14dedd1d DroidFish: Show engine error even if no detailed error string exists. 2012-01-07 01:40:48 +00:00
Peter Osterlund
f108540e8f DroidFish: Avoid run-time warning. 2012-01-06 22:53:01 +00:00
Peter Osterlund
e2a3215e20 DroidFish: Made sure the stockfish executable gets installed if it has been modified. 2012-01-06 21:03:50 +00:00
Peter Osterlund
f3c99a56f4 DroidFish: Fix for Android 1.5. 2012-01-06 19:31:34 +00:00
Peter Osterlund
9e83fd4206 DroidFish: Added copyright headers. 2012-01-04 21:15:06 +00:00
Peter Osterlund
1d0dde26d0 DroidFish: Moved error message to strings.xml. 2012-01-04 21:10:26 +00:00
Peter Osterlund
da605aa225 DroidFish: Run the internal stockfish engine as a separate process instead of using jni + fork, which is not stable. 2012-01-04 21:02:26 +00:00
Peter Osterlund
915b0d6897 DroidFish: Display an error message if an external engine fails to start. 2012-01-04 19:07:26 +00:00
Peter Osterlund
869f45334e DroidFish: Automatically create default directory structure on the SD card when starting the program. 2012-01-04 17:44:34 +00:00
Peter Osterlund
6436c4f027 DroidFish: Fixed "force computer move" function. 2012-01-03 18:37:44 +00:00
Peter Osterlund
01fdf25b72 DroidFish: Fix SeekBarPreference for languages that uses decimal comma instead of decimal dot. 2012-01-02 18:20:47 +00:00
Peter Osterlund
c653ef8ec2 DroidFish: Implemented support for external UCI engines. 2012-01-01 22:36:25 +00:00
Peter Osterlund
a1fdce1942 DroidFish: Check File.renameTo() return value. 2012-01-01 10:40:00 +00:00
Peter Osterlund
04a0b68f1a DroidFish: Renamed NativePipedProcess to StockFishJNI. 2012-01-01 10:31:12 +00:00
Peter Osterlund
4f4d1d95d7 DroidFish: Reduced visibility of opening book implementation classes. 2012-01-01 09:49:13 +00:00
Peter Osterlund
ce0cccb385 DroidFish: Moved the BookOptions class to the book package. 2012-01-01 09:46:02 +00:00
Peter Osterlund
61c2a92a12 DroidFish: Moved opening book code to separate package. 2012-01-01 09:42:17 +00:00
Peter Osterlund
aeaee1e5cd DroidFish: Changed default thinking time to 60 moves in 2 minutes. 2012-01-01 01:21:29 +00:00
Peter Osterlund
d8782830a9 DroidFish: More robust handling of misbehaving engines. 2011-12-31 20:09:31 +00:00
Peter Osterlund
6f25af50d9 DroidFish: Report engine name in the GUI when a new engine is started. 2011-12-31 13:42:48 +00:00
Peter Osterlund
7e133f2f15 DroidFish: Run the cuckoochess engine with reduced thread priority. 2011-12-31 11:27:06 +00:00
Peter Osterlund
6cd29a0353 DroidFish: Avoid empty lines in engine thinking information. 2011-12-31 10:36:46 +00:00
Peter Osterlund
c1ab57b4f9 DroidFish: Rewrote the engine communication so that the GUI never waits for the engine. 2011-12-31 02:30:18 +00:00