Commit Graph

174 Commits

Author SHA1 Message Date
Peter Osterlund
7d87d1fbd4 Minor cleanup 2020-06-01 22:13:22 +02:00
Peter Osterlund
219c07e769 Avoid crash if engine .ini file is corrupt 2020-05-27 19:59:41 +02:00
Peter Osterlund
999016889c Update translations 2020-05-23 07:05:11 +02:00
Peter Osterlund
c59fdfddaf Change version to 1.82 2020-05-20 21:29:55 +02:00
Peter Osterlund
8fdfdede44 Fix potential crash if an engine reports an invalid currmove
Could cause an ArrayIndexOutOfBoundsException:
  at org.petero.droidfish.gamelogic.Position.getPiece (Position.java:153)
  at org.petero.droidfish.gamelogic.MoveGen.pseudoLegalMoves (MoveGen.java:109)
  at org.petero.droidfish.gamelogic.MoveGen.legalMoves (MoveGen.java:32)
  at org.petero.droidfish.gamelogic.TextIO.moveToString (TextIO.java:429)
  at org.petero.droidfish.gamelogic.TextIO.moveToString (TextIO.java:339)
  at org.petero.droidfish.gamelogic.DroidChessController$SearchListener.notifyCurrMove (DroidChessController.java:826)
2020-05-18 22:51:02 +02:00
Peter Osterlund
06375cbf1b Add support for ABK opening books
Move probabilities are not exactly the same as in the Arena Chess GUI
because it is unknown how the computation in Arena works.
2020-05-17 20:37:47 +02:00
Peter Osterlund
03375fc479 Fix Android Studio warnings 2020-05-17 01:19:20 +02:00
Peter Osterlund
04363a3b01 Don't crash if an open exchange engine throws SecurityException 2020-05-09 11:58:47 +02:00
Peter Osterlund
6829d2ee4f Update translations 2020-05-02 23:39:07 +02:00
Peter Osterlund
08ae4afea3 Correctly set default value for elo member variable 2020-04-26 19:41:05 +02:00
Peter Osterlund
795428992f Small cleanup 2020-04-25 08:53:43 +02:00
Peter Osterlund
7c75c83859 Set engine strength using Elo value
Remove the Strength preferences setting.

Add a new left drawer menu item to set the current engine strength in
terms of Elo. Supported for all engines that implement the standard
UCI options UCI_LimitStrength and UCI_Elo.

Elo settings are remembered individually for each engine.
2020-04-19 22:37:19 +02:00
Peter Osterlund
33dfafd18c Fix accidental integer division in HSV color test code 2020-04-18 20:36:01 +02:00
Peter Osterlund
05a8322ce7 Move activity utility classes to separate package 2020-04-18 20:30:34 +02:00
Peter Osterlund
cab87d7ab4 Remove FIXME!! items from source code
This is better handled outside of the source code.
2020-04-18 02:56:22 +02:00
Peter Osterlund
7d73f25a2f Remove not needed inheritDoc comments 2020-04-18 02:50:29 +02:00
Peter Osterlund
7610745dc5 Reduce maxNPS when UCI_LimitStrength is enabled 2020-04-13 16:56:42 +02:00
Peter Osterlund
ed47fc0888 Add UCI_Elo support to CuckooChess engine in DroidFish.
Same implementation as for CuckooChess Java program.
2020-04-13 16:56:37 +02:00
Peter Osterlund
67e03495dc Implement maxNPS UCI option for CuckooChess
This is an alternative way to limit the engine strength. It also has
the advantage of reducing heat and battery drain.
2020-04-11 02:26:28 +02:00
Peter Osterlund
29d605af99 Change version to 1.81 2020-04-10 16:33:03 +02:00
Peter Osterlund
3ae05affb0 Fix auto-scrolling of the move list
It did not work correctly when figurine notation was used.
2020-04-10 11:35:30 +02:00
Peter Osterlund
951c67dcb3 Remove GUI stuff from gamelogic.Piece class 2020-04-10 11:10:29 +02:00
Peter Osterlund
a7aacdc1bb Add button action "Load game from PGN file" 2020-04-10 00:19:16 +02:00
Peter Osterlund
01e77c3963 Update translations 2020-04-07 23:31:43 +02:00
Peter Osterlund
303d535bcc Fix color picker layout problems for some screen sizes 2020-04-07 23:00:44 +02:00
Peter Osterlund
d0d6049554 Split line to try to understand crash reports 2020-04-07 19:55:24 +02:00
Peter Osterlund
8c491fffd1 Whitespace fix 2020-04-06 07:39:37 +02:00
Peter Osterlund
a96e9254ff Change version to 1.80 2020-04-05 21:27:08 +02:00
Peter Osterlund
29a864de05 Remove "64" and "POPCNT" information from Stockfish name
This information does not really help the typical user and also gets
included in the White/Black fields in the PGN header section.
2020-04-05 16:29:58 +02:00
Peter Osterlund
7100ec8a06 Disable "showThinking" setting by default
It does not make much sense to see the computer's thinking output when
playing a game. Information is still visible when analyzing though.
2020-04-05 16:19:19 +02:00
Peter Osterlund
6d481732a0 Made comment editing easier to use
In many cases the pre-comment of one move is displayed at the same
position in the move text as the post-comment of the previous move.
When this is the case, don't make a distinction between pre and post
comments in the "Edit Comments" dialog.
2020-04-05 16:19:11 +02:00
Peter Osterlund
392ac334dc Small optimization 2020-04-05 09:38:27 +02:00
Peter Osterlund
93213f826f Don't allow '}' in comments
The PGN standard does not allow the '}' character inside a comment,
because it is used to end the comment.

Therefore this character is now replaced with '}' (fullwidth right
curly bracket) when editing comments. This does not look great but is
better than making the PGN data invalid.
2020-04-05 07:16:51 +02:00
Peter Osterlund
bd28d178ad Remove accidental float math 2020-04-02 19:19:14 +02:00
Peter Osterlund
e2bfb57304 Update .gitignore 2020-03-31 21:46:21 +02:00
Hamidreza Bayat
ceea0cddea Remove unused imports 2020-03-29 15:53:20 +04:30
Hamidreza Bayat
c4575a67d9 Java language level migrations 2020-03-29 15:53:20 +04:30
Hamidreza Bayat
16b57176b6 Update dependencies across modules 2020-03-29 15:53:19 +04:30
Peter Osterlund
3969a9e841 More accurate conversion between HSV and RGB color spaces
This is needed to avoid problems when dragging one of the R/G/B
sliders. With the default Android conversion code, the other R/G/B
sliders sometimes move during dragging.
2020-03-28 23:10:46 +01:00
Peter Osterlund
4dcc24cee7 Improve color picker
* Add RGB sliders to manipulate only the red, green or blue color
  component.

* Add hexadecimal input field to let user specify the ARGB value.
2020-03-28 20:40:09 +01:00
Peter Osterlund
47b093446c GradientPanel cleanup
Move common functionality to the base class.
2020-03-28 09:12:04 +01:00
Peter Osterlund
fca44e4262 Refactor ColorPickerView
Create class GradientPanel and suitable subclasses to handle rendering
and input processing in the color picker.
2020-03-22 23:12:35 +01:00
Peter Osterlund
d3c4be4737 Code cleanup 2020-03-22 16:48:53 +01:00
Peter Osterlund
7ea6a9862f In color picker, move color space conversion to separate class 2020-03-22 16:22:07 +01:00
Peter Osterlund
ae4d2a4f16 Always show alpha slider in ColorPicker
Also some code cleanup.
2020-03-22 15:14:40 +01:00
Peter Osterlund
f61396b1f9 Remove unused functionality from ColorPicker
Also some cleanup.
2020-03-22 02:08:33 +01:00
Peter Osterlund
647be33b48 Cleanup in ColorPicker code
Also remove trackball event support from ColorPickerView.
2020-03-22 01:55:53 +01:00
Peter Osterlund
0c2884ddf8 Update translations 2020-03-22 00:01:57 +01:00
Peter Osterlund
9548d56356 Make color picker handle configuration changes correctly 2020-03-21 21:19:11 +01:00
Peter Osterlund
4b9eb9ba6a Cleanup in ColorPicker code 2020-03-21 19:38:46 +01:00