Eschecs FreeBASIC (UCI chess GUI)

User projects written in or related to FreeBASIC.
Post Reply
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

Thank you for these links. Let me take some time to peruse them.
TESLACOIL
Posts: 1769
Joined: Jun 20, 2010 16:04
Location: UK
Contact:

Post by TESLACOIL »

you should make a wiki for your chess program

you can upload all the versions and instructions and screen shots, they are very simple to make
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

TESLACOIL wrote:you should make a wiki for your chess program

you can upload all the versions and instructions and screen shots, they are very simple to make
I will think to it. Thanks for the link.
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

I am happy to present the short mouse-help I've just finished.
Thanks :
To TESLACOIL for the idea of use the place where taken pieces are drawn.
To TJF for the idea of multilingual help.
To BasicCoder2, Richard and fxm for their translations.

Code: Select all

select case as const aide
	case 0
	case 1
		draw string (392,032),"To move  a  piece,"
		draw string (392,044),"click  on  it  and"
		draw string (392,056),"then click on  the"
		draw string (392,068),"square you wish to"
		draw string (392,080),"move it to."
		draw string (392,092),"Press any key..."
        
		draw string (392,116),"Um eine  Figur  zu"
		draw string (392,128),"bewegen,   klicken"
		draw string (392,140),"Sie zuerst auf die"
		draw string (392,152),"Figur und dann auf"
		draw string (392,164),"das  Zielfeld."
		draw string (392,176),"Dr"+chr(129)+"cken Sie auf"
		draw string (392,188),"eine  Taste..."
        
		draw string (392,212),"Pour d"+chr(130)+"placer  une"
		draw string (392,224),"pi"+chr(138)+"ce, cliquez sur"
		draw string (392,236),"la case de d"+chr(130)+"part,"
		draw string (392,248),"puis sur  la  case"
		draw string (392,260),"d'arriv"+chr(130)+"e."
		draw string (392,272),"Appuyez sur une"
		draw string (392,284),"touche..."
        aide=0
        do
            if len(inkey)>0 then exit do
            res=getmouse(x,y,,buttons)
            if res=0 and buttons=1 then exit do
        loop
end select
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Post by TJF »

Roland Chastain wrote:To TJF for the idea of multilingual help.
Sorry, that's not exactly what I had in mind when I spoke about a multilingual GUI. I recommend to separate the texts from the source so a translator can act without changing the source code. And you need not care about the translator when you change the code.

Like it's done in a GTK application or in this gettext example.
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

TJF wrote:Sorry, that's not exactly what I had in mind when I spoke about a multilingual GUI.
Yes, I know ! I can see the kind of thing you had in mind. Maybe when my program is complete I will make something like that.
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Eschecs 0.3

Post by Roland Chastain »

Hello !

Here is ESCHECS 0.3 : http://www.freebasic-portal.de/download ... s-210.html
New :
Short multilingual "old-manner" help message for mouse control. Thanks to charitable translaters (english and german languages).
Highlighting legal moves with right-click. (It is not yet written in the Help !)
Short messages in the window title, about the way to quit, and about the way to stop the "auto" mode.
A new line in the evaluation program. Anti-pawn-promotion ! The h2-h4-h5-h6 attack doesn't succeed any longer ! ;-)
I made also much things in the source code, in order to progress in clarity and order, but there is much to do.

Please have a look and let me know what you think about !
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

Hi !

I need again a translation for my "help" screen. It would be very nice to let me know how I could turn in english this sentence :

"Vous pouvez voir les coups permis à chaque pièce en utilisant le bouton droit de la souris."

Thanks in advance !
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Post by fxm »

Perhaps:
Right mouse button on piece lists the allowed moves.
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

fxm wrote:Perhaps:
Right mouse button on piece lists the allowed moves.
Short and clear ! Thanks.
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

But I wonder if "list" is the right word. The allowed moves are indicated by a colored line on squares, not written like "e2e4". Does the word "list" suit, according to you, to say that ?
Last edited by Roland Chastain on Dec 17, 2011 18:17, edited 1 time in total.
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Post by fxm »

Right mouse button on piece displays the allowed moves.

(I thought it was a pop-up window!)
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

fxm wrote:(I thought it was a pop-up window!)
This is what I said to me, that you thought of a window. I should have been clearer. Thank you !

Code: Select all

draw string (36,036),"To move a piece, click on it and then"
draw string (36,048),"click on the square you wish to  move"
draw string (36,060),"it to. Right mouse  button  on  piece"
draw string (36,072),"displays the allowed moves." 
draw string (36,084),"Press any key..."
Roland Chastain
Posts: 992
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Post by Roland Chastain »

Hi !

Here is ESCHECS 0.4 :

Image
Last edited by Roland Chastain on Apr 21, 2018 16:53, edited 1 time in total.
ike
Posts: 387
Joined: Jan 17, 2011 18:59

Post by ike »

I try your chess. It is good.

But sometimes I can not see what move oposit side played.
Can you change color and delay a second for each move

Also I press ESC and game finish without a question:
"Do you want to end this game" or so
Post Reply