Code Monkey home page Code Monkey logo

lucaschessr2's Introduction

Lucas Chess (R)

Lucas Chess (R) is a GUI of chess:

  1. To train in many different ways.
  2. To play chess against any UCI engine.
  3. To compete against engines to obtain an elo.
  4. It has utilities to edit games, create polyglot books, tournaments between engines ...

This is an update of Lucas Chess with a new version of python (2.7 -> 3.7) and the main graphic library, from pyqt4 to pyside2 (qt4 -> qt5).

Incompatibilities

  • Does not support Windows XP.
  • Data files are not compatible with previous versions of Lucas Chess.

Dependencies

  • Python 3.7
  • PySide2
  • psutil
  • Python for windows extensions
  • chardet
  • python-chess
  • pyllow
  • photohash
  • cython
  • sortedcontainers
  • polib

Links

Legal Details

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

See the file "LICENSE" for details.

lucaschessr2's People

Contributors

lukasmonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lucaschessr2's Issues

Reading PGN with a new window

Hello there.

In order to read a PGN file, i always have to be root (Using ubuntu) and also pgn opens only in a new window. The previous feature was fine where you just paste the pgn and analyze it.

Kindly help.

doesnt support windows 7?

hello,
the lucasr.exe file crashes when launched.
i suppose its because i have windows 7
is there a version compatible with my os? (win7 pro 64bits)
thx

Extra space after the move and annotation prevents lichess parser from importing the whole game

Example:
After exporting the Lucas game in PGN format (no comments) I got the following:

1.d4 b6 ?! 2.e4 Bb7 3.Nc3 d5 ?! 4.exd5 Bxd5 ?! 5.Nxd5 Qxd5 6.Nf3 Nf6 7.Bd3 ?! e6
8.O-O Bd6 9.Re1 O-O ?! 10.c4 ?! Qh5 11.h3 Nbd7 12.Bd2 ?! c5 13.Qc2 ?! cxd4
14.Nxd4 Bc5 ?! 15.Nf3 ! Rad8 ?! 16.Bf1 ?! Rfe8 ? 17.Bf4 ?? e5 18.Bg3 e4 19.Nh2 ?
e3 ?! 20.Be2 ? exf2+ 21.Bxf2 Bxf2+ 22.Kxf2 Qc5+ 23.Kf1 Ne4 24.Qd3 ?? Qf2#

a) ?!, ??, ?, ! annotations are still present in the file - it would be nice to have an option to not have them.
b) Probably pgn format does not allow a space before annotation signs ?!
c) Lichess import parser stops after the first moves and shows:
1.d4 b6

Advancing to next puzzle resizes screen

When practicing tactics in full screen (F11), advancing to the next puzzle by pressing page down results in the window resizing.

Microsoft Windows Home 11

Null moves support for PGN files ?

I am not sure if LucasChess already supports null moves, so far I cannot figure it out how to make lucaschess parse it hence the feature request.


I currently have a "patched up" PGN file (where I basically joined two lichess games into one) and it has a weird move. 13...Rb8 , where the .. after 13. is called a null move which is what I found searching over the internet. The other GUI (SCID vs PC) can infact read this when the .. is replaced with -- and can continue thereon.

However doing the same with lucaschessR2 resulted in a split in the temporary database view, where the first game has no moves altogether and the second game has the moves uptil the null is encountered.

So far on searching, I found out that a few many GUIs support null moves, including lichess & chesscom. So I am curious if lucaschess will also provide some support for it. Thanks!

Small point but by default SCID cannot read .. and will complain about an error. I hope lucaschess' implementation would support both .. and -- if implemented.

P.S. Big fan of your lucaschess and your work!

Unable to install Custom UCI Engine

This is the error I am getting when I try and and install a custom UCI engine that works with other Chess GUIs such as Arena

./myexample.engine: /home/myuser/LucasChessR/bin/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by ./myexample.engine)
./myexample.engine: /home/myuser/LucasChessR/bin/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./myexample.engine)

I have tried installing:
sudo apt-get install libstdc++6
but I already have it. This is on Ubuntu 22.04

Thank you

Bug of "Moves tree"

To replicate -

  1. Open Moves tree for any move
  2. Click Analyze and Accept
  3. Once analysis is over, double click any analysed move in Score column
  4. A window will open showing entire engine suggested variation
  5. In this window, double click any move to analyse it
  6. After some time analysis will complete and add multiple move possibilities to this move
  7. Click Accept button on top left corner
  8. Re-open this same window by double clicking on same move in Score column
  9. Here is the bug, all alternative moves previously analysed by engine are vanished

Moves tree doesn't show white's first moves at initial position

Hi,
If you paste a game in a database and go to initial position of the game (all pieces on their starting position) and open Moves tree, it doesn't show white's alternatives, instead it shows black's alternatives. So, if a user wants to add a comment on very first move of white, he has to open "Create your own game" and put the comment on white's first move. Unnecessary efforts!

Pack Database

I have been playing around with the database tool and I noticed my database was getting very big (around 50gb) so I went to "pack database" to help reduce some of the size as well as removed many of the tags as I was not using them in my database anyway and after the pack, my database has jumped up to around 100gb it almost doubled in size but I have no idea why. also after doing pack database "One moment please..." stays overtop of everything permanently until I close the program entirely. I gave it multiple days and even checked task manager to confirm it was not still working it just doesn't ever go away.

Check for updates always errors out

Using the check for updates option no longer works. It always reports the error message: Encountered a network problem, cannot access the Internet.

This used to work for me (unless my internet connection was down) prior to version 2.00+.

Pixbuf error with import PGN

Hello,

I have installed the Linux version of Lucas Chess R 2.02a. When trying to import a PGN file with Tools > PGN > Read PGN file, Lucas Chess crashes and closes.

** Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /home/emmanuel/.icons/Mint-Y-perso/mimetypes/16/image.png: Format d’image non reconnu (gdk-pixbuf-error-quark, 3) Bail out! Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /home/emmanuel/.icons/Mint-Y-perso/mimetypes/16/image.png: Format d’image non reconnu (gdk-pixbuf-error-quark, 3) Abandon (core dumped)

I tried to revert to Adwaita icons, same issue. I move the icons in my home folder, same issue. If I start Lucas chess using sudo, then it works. It therefore seems to be an access issue.

I have a brand new Linux install, and I didn't install anything weird yet, or made any strange setup. My install is brand new, because while trying to solve this issue, I ended up messing the full system. Therefore I just reinstalled everything today :)

emmanuel@emmanuel-N24-25JU:~$ inxi -F System: Host: emmanuel-N24-25JU Kernel: 5.15.0-41-generic x86_64 bits: 64 Desktop: Cinnamon 5.4.11 Distro: Linux Mint 21 Vanessa

How to resize board?

How can I resize the chess board.

Resizing with mouse at the corner is disabled here

bug launch

Unable to launch lucas chess under linux, error message.
I am under manjaro gnome
Capture d’écran du 2022-03-19 12-16-44

Translate is not installed in some configurations in Linux

Translate is sometimes not installed because if in Gui.py:47 returns false which means that configuration.x_translator is somehow true in my configuration.

I'm using Arch Linux x86_64.

Changing:

diff --git a/bin/Code/MainWindow/Gui.py b/bin/Code/MainWindow/Gui.py
index bbfec9c..51da803 100644
--- a/bin/Code/MainWindow/Gui.py
+++ b/bin/Code/MainWindow/Gui.py
@@ -43,7 +43,8 @@ def run_gui(procesador):
                     Usuarios.Usuarios().save_list(list_users)
 
     # Comprobamos el lenguaje
-    if not configuration.x_translator:
+    #if not configuration.x_translator:
+    if True:
         if user:
             conf_main = Configuration.Configuration("")
             configuration.x_translator = conf_main.x_translator

Makes the app run.

OT: I'm trying to create a PKGBUILD for Arch Linux to compile and install lucas chess R2.

Kind regards and thanks for your effort on this project.

Strategic Test Suite Update

The people at Rebel Chess Engine have gone and produced an update for the dated STS and have made a new analysis for it, with two versions by Stockfish and LC0. Looking at the Lucas Chess STS file, you may have to convert the correct moves from algebraic notation which they are in the new epd, but it should help greatly with STS accuracy

Personalities Not Saving

I'm using a Windows 11 Computer and version version R 2.02a

It appears that if you create a Personality from the Advance tab in the Play against an Engine Section. If you later close and restart Lucas chess, that Personality that you setup is no longer available.

before

If I then close and restart lucas chess

after

As you can see there is no Test Personality anymore.

Am I doing something wrong?

On wayland I cannot install,

I use Archlinux with Gnome 42.1 (Wayland) if I want to install I receive this message:

Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing Lucas Chess R 2.01c  100%

(setup_linux:9802): GLib-GIO-ERROR **: 11:19:39.095: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
./setup_linux.sh: line 19:  9801 Trace/breakpoint trap   (core dumped) ./setup_linux

If I disconnect and connect to the X11, everything goes well and works as I expected, but under Wayland it doesn't start even after it's installed with X11.

Adding external engines doesn't work

  1. In the file selector one can't expand /usr/games/ directory (but for example /usr/bin/ expands well), so I can't choose /usr/games/stockfish file.
  2. If I write path to this file manually, Lucas Chess doesn't remember my new engine (in this case Stockfish 12).
  3. Lucas Chess then stops launching, unless i remove ~/LucasChessR/UserData/Config/ExtEngines.pk file.

Ability to add variations in variation window in "Moves tree"

Hi,
After analysing a position by engine, we get a list of moves in Moves tree, when we double click on "Score", a window opens which shows entire best variation chosen by engine. It would be helpful to study a position if we are able to add more variations (secondary variations) in this window. This ability can give a user 360 degree understanding of any position. Currently we can only see a single variation line here.

Adding a user hangs the program

I have two users. I click on one (or I can click on select your user), then go to Options, then users, and it stops responding. Can you please help?
Edit: latest version btw

I can't import lichess puzzle to Lucaschess

I found that when I was importing, lucaschess memory usage rose by 1GB and then fell back to 100MB... And the import still shows work!
Does it mean that the import failed?

Elo calculation in analysis

It seems to me that elo-estimation doesn't work properly during the analyze (at least it works differently than previous version).
I would guess that average elo is attached to a move (average of all previous moves). In effect, later moves have smaller effect in that case.
For example, move 12 with diff 1.11 gets elo 2992, and move 46 with diff 1.48 gets elo 3481.

Best wishes, Franis Sirkovic.

I have made a mistake, i have added this bug as a comment on another issue, apology.

(Single) game analysis usability

Hi,

love using Lucas Chess on Linux to analyze games I play on various platforms, and I have some usability suggestions that would improve the experience:

1. Allow directly paste a FEN (or drag&drop a PNG) on the main window, opening the game/position directly.
Currently FEN: I open Lucas Chess, then "Tools -> Create your own Game", then Ctrl+V.
Currently PNG: There is no drag&drop support, so I go "Tools -> PNG -> Read PNG -> <select file>",
then double click the game on the "Game Database" dialog.


2. Allow directly to move on the board from the main window, creating a new custom game,
instead of requiring tools->create your own game)

3. When opening a PNG:
 a) Skip "Game Database" dialog when single PNGs are opened, go straight to the board
 b) Open own black games from black point of view (configurable?). Check if "Player's Name"
is the same as the Black players name, if so, flip board on game load.

a specific error

Hi Lucas,
I am facing a very specific error which occurs only at one position in "Moves tree". Look at the position below.
image
Moves tree doesn't open at Black's 7th move here. This is only happening here, NOT anywhere else. At present, this is a very small problem but if this starts to happen with some other moves/positions then it would be troublesome. Any clue what is happening?

Limit Engine's Strength

I try to set the UCI_LimitStrength parameter of stockfish but the config doesn't actually get saved and used.

Trying to add a chess engine via command hangs the program indefinitely

Hi,

I have a chess engine running on the JVM, and when I try to add it via command like so
image

or like so

image

Lucas Chess will hang itself indefinitely.

Trying to start the engine in PowerShell is no problem. It also responds uciok to uci and readyok to isready:

image

Not 100% sure this isn't an issue on my end, but maybe someone can help me out here if this is indeed not a bug. I can supply test files if necessary.

Engine Tournaments Not Working

When creating matches, there is nothing. No matter what count of rounds, nothing is generated. It doesn't even lag when creating hundreds or thousands signifying it's not even trying to make any.
Also, when opening an older one, with existing matches, it shows blank matches, with no data and the past records in that one are also blank, it says games were played and can be, but it just freezes when I add a helper.

Lucas Chess R 2.02a not responding during Compete mode Windows 10

I'm new to Lucas and have started playing in Compete / Competition with Tutor mode to get familiar. I have experience multiple "not respondings" in almost half the games so far. Here is the latest.

I have not tried playing just against the engine without Tutor mode yet to see if it occurs there.

image

It has happened at Beginner Level 2 and Amateur Level 1

At first I thought it was when I responded quickly to a move but today it was after deliberating and then playing Rde2

OS Name Microsoft Windows 10 Pro
Version 10.0.19043 Build 19043

Lucas Chess R 2.02a

I do have python loaded on my machine as well.
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32

Lichess Puzzle Database import takes forever.

I tried to import the latest Puzzles from the Lichess Database into a Lucas Chess Database but the Import takes forever.

I've tried copying a small amount of Puzzles out of the 2.9M Puzzle File and put it into a new .csv File but it still takes forever.

This is how it looks like:
grafik

Custom opening not available to engine.

I'd like to create a custom opening and have an engine play exclusively that opening. I created an opening, gave it a name and a code of X99. I looked in Play>Play against an engine>Initial Moves Opening. The opening I created is not there.

There is also a panel for Activate Book, which seems to imply that I could create an openings book and have the engine use that. I cannot see how to create the openings book. The help document on https://www.devtome.com/ talks about Tools > Openings > Personal Opening Guide which I guess has now become Custom Opening, but what I see in Custom Opening doesn't match with the screenshots or description in that document.

There is also the 2015 document on http://omgchess.blogspot.com/ but that again doesn't match with what I see in the current version, and it seems to be aimed at training an opening rather than having the engine play it.

Better GM Personalities

Utilizing Rodent-4 NNUE, you can effectively create GM profiles that play like the actual World Champions. I've done some personal testing with some personalities and a certain GM-trained NNUE, and it works really well, with over 50% move matching after 2-3 seconds per move. That's with my custom-tuned personalities, though using arena with the engine as kibitz to tune further could work. Contact me for more, as I can supply you with all the files, and there should be no problems.

Text in Director (Abc) doesn't work

Hi,
Option F10 in Director is not functioning. When you click it, it is added (Text) but when you save it and close the window, it disappears. When you reopen Director, that same entry is also missing there. I am using it first time, so don't know whether it's a bug or I am missing something.

Possibility of a bug

Hi,
Look at the image below. This is the position where I am coming for the first time, as it is evident from the absence of any coloured moves. Still, there are two arrows generated by Director. Does software show arrows (or marks) in similar positions (though not exactly same)? I will update here, if I come across similar problem again, in some other positions to confirm the bug.
image

Internal Maia Engines playing moves instantaneously.

I've tried both the 1500 and the 1600. The settings I have are
Fixed Time in Seconds 0.0
Fixed Depth 0
Total Minutes 20
The engine plays its moves instantaneously. Its clock remains at 20 minutes.

I downloaded lc0 and Maia and installed them as an external engine. It does now play properly, using its allocated time, but I'm not sure if it's playing at the correct strength. The Maia documentation says that the Nodes parameter needs to be set to 0. I don't know where to set that in the Lucas Chess engine configuration page. There is a setting for NodesPerSecondLimit. Is that the parameter that needs to be set to 1 so that the engine will play at the rating governed by the weights file?

I also have a question regarding the Nodes used with Maia engines setting on the "more" tab. Its default is 1, but the other setting is "From 1 (1100) to 450 nodes (1900), similar strength as other engines". So that sounds as though it needs to be set depending on which engine you're using, but it seems to be a global setting, not a per-engine-setting.

Thanks for your help.

Kibitzer engine calculates for wrong position when opened in variation

Reproduce:

  1. Tools -> Create your own game
  2. play 1. d4 d5
  3. Go back to position after 1. d4 (e.g. left arrow)
  4. play 1. ... e5 (it opens as a variation)
  5. open kibitzer: Utilitites -> Kibitzers -> your_engine.

Expected: Kibitzer calculating for current position on board (1. d4 e5)
Observed: Kibitzer calculating for "main line" position (1. d4 d5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.