Knights

Board

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

19
Score 85.4%
Description:

Knights is a simple chess board for KDE 4. It is a rewrite of the KDE3 Knights.

Its home page with regular updates is at http://noughmad.com/knights.

You can play againts computer engines that support the XBoard protocol (like GnuChess), against anouther player at the same computer, or on the Free Internet Chess Server. It has automatic rule checking and some nice animations.

For compiling, you need KDE as well as libkdegames headers, which are usually found in libkdegames-dev or libkdegames-devel packages.

Packages can be downloaded form build.opensuse.com, however try to use your distribution's version when possible. In any case, please report any problems, bugs, and wishes to bugs.kde.org (product knights).

The source archive includes a README.themes file with info for creating and sharing new themes for Knights. They can be uploaded to kde-look.org, and downloaded directly from Knights.

Due to a recent break of compatibility in KDEGames, versions from 2.5 onward require KDE 4.9 or newer. User of older KDE version should use the 2.4 branch.
Last changelog:

6 years ago

Version 2.5.0: Port to new KDEGames library, compatible with KDE 4.9

Version 2.4.2: A handful of usability fixes

Version 2.4.1 introduces support for the UCI protocol, setting the difficulty level of chess engines, game history display, and loading and saving PGN files.

Version 2.4.0 brings voice support, possibility of external control by dbus, and a couple of bug fixes.

Version 2.3.2 is a bugfix release with several fixes, mostly by Dave Kaye. It fixes drag-coused freezes, dropping pieces outside of the board, and a theme appearing twice in the selection dialog.

Version 2.3.1 fixed exactly one bug; the peace captured by en-passant is now properly removed.

The changelog since the last stable release (2.2.0) includes:

- Watching two engines play
- Improved time control support for chess engines
- Better support for the XBoard protocol means Knights can play with more engines, including Crafty, Sloppy, Sjeng and Phalanx.
- Players can now make and receive offer for draw, pause, undo, adjourn and abort. All except Draw are only used when playing on the chess server.
- Players can now undo their moves.
Improved game dialog, with more game options.
- Improved server dialog, with a seek graph.
- Ability to interact with a chess server or a computer engine via a text console.
- Simple chat widget for talking to your remote opponent.
- Selecting and moving pieces by clicking, without dragging.

jrballesteros05

8 years ago

Thanks a lot for your answer. I reported a new bug in kde.org. Take care :D

Report

cb400f

9 years ago

Hi

I noticed you don't include translations in the tarball, even though quite a few translations exist:
http://l10n.kde.org/stats/gui/trunk-kde4/po/knights.po/

Maybe that's worth looking at for the next release.

And remember to notify the i18n-doc mailinglist about string freeze, tagging/release date and name and location of the po/pot some days before release, if you do decide to include translations :-)

Keep up the good work.

Report

C

Noughmad

9 years ago

I know, that's why I will try to get Knights included in the next KDE release.

I have no idea how to properly include the translation files. I don't have much free time currently, so I thought it would be easier to get Knights to kdegames and let the release team worry about it.

If anyone volunteers to do it (or teach me how), I'd be happy to add them, otherwise it will have to wait for five more months.

Report

cb400f

9 years ago

Ok. I'm not really an expert myself.

All I can say is that the translations "just work" (I tested the Danish one).

So the PO-files just need to be included, and 'msgfmt' run on them, with the output file being put in /usr/share/locale/$lang/LC_MESSAGES/knights.mo

But I'm pretty clueless about building and qmake etc., so no idea how that's handled in practice.

But getting Knights into kdegames for 4.6 sounds like a great idea anyway.

Report

Blahord

9 years ago

I found the reason why the AI does nothing:

File src/proto/xboardproto.cpp line 115

- else if (line.contains( "..." ))
+ else if (line.contains( "move" ))

should fix it (at least for me (GNU Chess 5.07.94.1b)

I also found some problems:
-- Start a game.
Game->start new->cancel. The current game runs, but the cloks are gone.
-- I have a small + icons when draggin a figure

Report

C

Noughmad

9 years ago

Strange, the "..." works fine for me, and I have GNU Chess 5.07 too. It always outputs two lines, like:
"... e2e4"
"My move is e2e4"

I will look into the clocks when you cancel a new game. Thanks for the quick response :)

About the + cursor: It's the default cursor for dragging. It can be disabled, but I don't know if people like it or not.

Report

Blahord

9 years ago

The "+" icon sugessts a copy action and this is wrong: we do not copy a figure.
Just to see the figure itself shows everything that the player needs.

Report

C

Noughmad

9 years ago

I added it before there were legal move markers, for confirmation that you really pressed a movable pieces. Now that markers pop up when you click on a piece, I suppose a cursor change isn't needed anymore. I'll remove it.

Report

Blahord

9 years ago

I added a visual Clock that should replace the QTimeEdit.

It is just a first implementation. The graphics of the clock can be improved by editing the rendering code.

Here the src files i changed/added:
http://www.linux-ecke.de/knights-diff.tar.gz

Report

C

Noughmad

9 years ago

That's great, thanks. I was looking for a nice Qt/KDE clock widget, but couldn't find any.

Again, sorry for replying so late, but I will include it ASAP. Thanks.

Report

C

Noughmad

9 years ago

Alright, I tried it and it looks great. At first I you had a bug because it ran backwards, but I was soon informed that that's the way chess clock are supposed to go. :)

Anyway, you didn't include any copyright, should I assign it to you?

Report

Blahord

9 years ago

You can do it.

Report

Psifidotos

9 years ago

Hello,

I use version 2.0.1 from opensuse 11.2 x64 . For some reason I cannot play with computer as opponent and I cant figure out why not. Both gnuchess and crafty are installed but neither is working. Any ideas?

P.S I've created a theme, that uses totally http://en.wikipedia.org/wiki/Chess_pieces from Colin M.L. Burnett, Do you want to check it?

Regards,

Michail

Report

C

Noughmad

9 years ago

GnuChess should work, but you have to use the --xboard option. Other than that, I don't know what might cause it.

Regarding Crafty, I still don't know how to get it to talk the XBoard (or any other) protocol.

Report

C

Noughmad

9 years ago

I was looking at his pieces, as they were suggested to me in a blog comment, but didn't yet get to talk to him. However I did put them into a single theme file, but not well. I don't have any experience with svg graphics.

I'd be happy if you send me the theme you put together, and I'm sorry for replying so late, I've been more busy than I expected this month.

Also, please note that I changed the element naming scheme to match that of Tagua, which is also much clearer (in the form of WhiteKnight, BlackKing etc.). I also introduced markers for possible moves, for the last move and for dangerous situations, while that theme doesn't seem to have any suitable graphic. They're optional, so it's not a problem, but I'd be interested in any idea you have about them.

Report

nqn1976

9 years ago

Hi,
Please add the line "Categories=Game;BoardGame;" to the .desktop file, so that it shows up at the right place in the menus. Thanks!

Report

C

Noughmad

9 years ago

I just commited it to playground. Thanks for the catch.

Report

C

Noughmad

9 years ago

Just so that you know, I'm working on FICS support now, so in the next release you will (most likely) be able to play on FreeChess.org.

Report

global667

9 years ago

Hello,
get this while running make:

Scanning dependencies of target knights_automoc
Generating knights.moc
Generating knightsview.moc
Generating board.moc
Generating moc_gamedialog.cpp
Generating moc_clockwidget.cpp
Generating moc_protocol.cpp
Generating moc_xboardproto.cpp
[ 0%] Built target knights_automoc
[ 5%] Generating settings.h, settings.cpp
[ 10%] Generating ui_knightsview_base.h
[ 15%] Generating ui_prefs_base.h
[ 21%] Generating ui_gamedialog.h
[ 26%] Generating ui_clockwidget.h
Scanning dependencies of target knights
[ 31%] Building CXX object src/CMakeFiles/knights.dir/knights_automoc.o
[ 36%] Building CXX object src/CMakeFiles/knights.dir/core/pos.o
[ 42%] Building CXX object src/CMakeFiles/knights.dir/core/piece.o
[ 47%] Building CXX object src/CMakeFiles/knights.dir/core/move.o
[ 52%] Building CXX object src/CMakeFiles/knights.dir/proto/protocol.o
[ 57%] Building CXX object src/CMakeFiles/knights.dir/proto/xboardproto.o
[ 63%] Building CXX object src/CMakeFiles/knights.dir/chessrules.o
[ 68%] Building CXX object src/CMakeFiles/knights.dir/gamedialog.o
[ 73%] Building CXX object src/CMakeFiles/knights.dir/board.o
/home/wolf/Downloads/Knights/src/board.cpp:29:22: error: KGameTheme: No such file or directory
/home/wolf/Downloads/Knights/src/board.cpp: In constructor ‘Knights::Board::Board(QObject*)’:
/home/wolf/Downloads/Knights/src/board.cpp:58: error: invalid use of incomplete type ‘struct KGameTheme’
/home/wolf/Downloads/Knights/src/board.h:33: error: forward declaration of ‘struct KGameTheme’
/home/wolf/Downloads/Knights/src/board.cpp: In member function ‘void Knights::Board::updateTheme()’:
/home/wolf/Downloads/Knights/src/board.cpp:404: error: invalid use of incomplete type ‘struct KGameTheme’
/home/wolf/Downloads/Knights/src/board.h:33: error: forward declaration of ‘struct KGameTheme’
/home/wolf/Downloads/Knights/src/board.cpp:405: error: invalid use of incomplete type ‘struct KGameTheme’
/home/wolf/Downloads/Knights/src/board.h:33: error: forward declaration of ‘struct KGameTheme’
/home/wolf/Downloads/Knights/src/board.cpp:408: error: invalid use of incomplete type ‘struct KGameTheme’
/home/wolf/Downloads/Knights/src/board.h:33: error: forward declaration of ‘struct KGameTheme’
make[2]: *** [src/CMakeFiles/knights.dir/board.o] Fehler 1
make[1]: *** [src/CMakeFiles/knights.dir/all] Fehler 2
make: *** [all] Fehler 2


Why you not use the old hp:
http://knights.sourceforge.net/news_archive.php

Greets
WSK

Report

global667

9 years ago

Ok, I doesn't have the need libs....now it works, but there is no chessboard and no pieces to see.

Report

C

Noughmad

9 years ago

I see that you found the missing library (libkdegames), I'm sorry I wasn't able to respond sooner.

But I don't know what you mean by "no chessboard to see". The app opens up a dialog first and only shows the board after you click OK in that dialog.

If you did that and the board stil doesn't show up, or if the dialog isn't there, please tell me all about it.

P.S.: What is "the old hp"?

Report

global667

9 years ago

If you did that and the board stil doesn't show up, or if the dialog isn't there, please tell me all about it.

I only can say: If I start a game like you descriped above, I don't see the board and the pieces and if I try to play blind (e.g. click to the supposed position of the e-pawn) nothing happens (e.g. the timer changed to black).


P.S.: What is "the old hp"?

The last entry from the original homepage of the old knights (aka "the old hp" feat. http://knights.sourceforge.net/ ) is from the early 2005 and your version couldn't be downloaded. Perhaps you ask the old owner to get it.

Greets

Report

C

Noughmad

9 years ago

I'm not sure, but I guess it could be one of two things:
- themes are not properly installed. Check it at Settings -> Configure Knights -> Theme
- You're using KDE older than 4.4 (or Qt older that 4.6) and I didn't test it enough.

Report

global667

9 years ago

I used the newest KDE/Qt. My Bootcamp/Parallels on OSX killed the Linux partition so I can't say more about knight at moment.

Greets!

Report

tittiatcoke

9 years ago

Hi,

I have created the openSUSE package for this application. Knights is available for those using the KDE:KDE4:Community repository.

Regards

Raymond

Report

6 years ago

Version 2.5.0: Port to new KDEGames library, compatible with KDE 4.9

Version 2.4.2: A handful of usability fixes

Version 2.4.1 introduces support for the UCI protocol, setting the difficulty level of chess engines, game history display, and loading and saving PGN files.

Version 2.4.0 brings voice support, possibility of external control by dbus, and a couple of bug fixes.

Version 2.3.2 is a bugfix release with several fixes, mostly by Dave Kaye. It fixes drag-coused freezes, dropping pieces outside of the board, and a theme appearing twice in the selection dialog.

Version 2.3.1 fixed exactly one bug; the peace captured by en-passant is now properly removed.

The changelog since the last stable release (2.2.0) includes:

- Watching two engines play
- Improved time control support for chess engines
- Better support for the XBoard protocol means Knights can play with more engines, including Crafty, Sloppy, Sjeng and Phalanx.
- Players can now make and receive offer for draw, pause, undo, adjourn and abort. All except Draw are only used when playing on the chess server.
- Players can now undo their moves.
Improved game dialog, with more game options.
- Improved server dialog, with a seek graph.
- Ability to interact with a chess server or a computer engine via a text console.
- Simple chat widget for talking to your remote opponent.
- Selecting and moving pieces by clicking, without dragging.

12345678910
31
product-maker ThAnderson Nov 21 2015 9 excellent
product-maker vgezer Jun 16 2013 9 excellent
product-maker Meteorrock Mar 25 2013 9 excellent
product-maker tsujan Jan 09 2013 9 excellent
product-maker kjetilk Oct 08 2012 9 excellent
product-maker electron222 Jan 24 2012 9 excellent
product-maker tcat Jan 20 2012 9 excellent
product-maker Grobelard Nov 13 2011 9 excellent
product-maker Arglinux Oct 22 2011 9 excellent
product-maker snakebite Oct 21 2011 9 excellent
product-maker Contrast Aug 25 2011 9 excellent
product-maker tobaj Aug 06 2011 9 excellent
product-maker aspotashev Jun 13 2011 9 excellent
product-maker Telperien May 19 2011 9 excellent
product-maker fictitious Apr 18 2011 9 excellent
product-maker schleby Apr 05 2011 9 excellent
product-maker raulsilva Mar 31 2011 9 excellent
product-maker Rettich Mar 20 2011 9 excellent
product-maker Uzanto Mar 19 2011 9 excellent
product-maker momonster Mar 10 2011 9 excellent
product-maker daedaluz Feb 13 2011 9 excellent
product-maker janet Feb 05 2011 9 excellent
product-maker franciscot Jan 20 2011 9 excellent
product-maker xam Dec 23 2010 9 excellent
product-maker josec87 Dec 17 2010 9 excellent
product-maker ita256 Dec 17 2010 9 excellent
product-maker digikamdeveloper Dec 17 2010 9 excellent
product-maker Alesvol Dec 16 2010 9 excellent
product-maker mutlu Nov 03 2010 9 excellent
product-maker MetalByte Oct 25 2010 9 excellent
product-maker pvt14 Sep 29 2010 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
2.5.0
updated Jan 24 2013
added Mar 23 2010
downloads 24h
0
page views 24h 11
System Tags app software