Eschecs FreeBASIC (UCI chess GUI)
few tips
let user know on screen 'escape' exits the program
i couldn't figure out how to stop the autoplay either
it also took me a while to figure out how to move the pieces with the mouse
when the users clicks on a square it that square should be highlighted = intuitive feedback
I like the prog , it looks ok , just needs a bit more polish on the interface
on the fun side if you push the H pawn you always get a queen :-)
h2>h4
h5
h6
pxp
pxr (Queen)
let user know on screen 'escape' exits the program
i couldn't figure out how to stop the autoplay either
it also took me a while to figure out how to move the pieces with the mouse
when the users clicks on a square it that square should be highlighted = intuitive feedback
I like the prog , it looks ok , just needs a bit more polish on the interface
on the fun side if you push the H pawn you always get a queen :-)
h2>h4
h5
h6
pxp
pxr (Queen)
-
- Posts: 1006
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
I will.TESLACOIL wrote:let user know on screen 'escape' exits the program
You're right, this is also a problem. I will think to it.TESLACOIL wrote:i couldn't figure out how to stop the autoplay either
Yes, but if I explain it in the "readme", almost nobody reads "readme". If I write it to the screen, I'm afraid it doesn't look very nice (to my taste). And moreover I must choose a language. If it is not french, I'm not able to make it myself without language mistakes. I have to decide myself on that question of help messages.TESLACOIL wrote:it also took me a while to figure out how to move the pieces with the mouse
I will make it in next days.TESLACOIL wrote:when the users clicks on a square it that square should be highlighted = intuitive feedback
Thank you very much for all your observations ! I will make something as soon as possible to find a strategy against the "h2-h4-h5-h6" attack ! I had never tried this move. It's great that you did say it to me. I will have a look at it at once.TESLACOIL wrote:I like the prog , it looks ok , just needs a bit more polish on the interface
on the fun side if you push the H pawn you always get a queen :-)
h2>h4
h5
h6
pxp
pxr (Queen)
If the engine works this way it's more dificile, because FreeBasic cannot handle bidirectional pipes (you can either output or input). For cross-platform code have a look atRoland Chastain wrote:http://home.pacific.net.au/~tommyinoz/minimax.zip
It's very simple. After I have run the program, if I don't worry about any option and play white, I just have to type my move, for example "e2e4" and press enter. Then, as you say, the engine calculates and outputs for example "e7e5" (and other things I don't need).
What about making a multi-lingual GUI? What about serving this (and other) information as a (translatable) tooltip?Roland Chastain wrote:Yes, but if I explain it in the "readme", almost nobody reads "readme". If I write it to the screen, I'm afraid it doesn't look very nice (to my taste). And moreover I must choose a language. If it is not french, I'm not able to make it myself without language mistakes. I have to decide myself on that question of help messages.TESLACOIL wrote: it also took me a while to figure out how to move the pieces with the mouse
It's easy by using GTK toolkit and you'll get cross-platform code (windows / LINUX).
never drop your user in the dungeon of FUD fear uncertainty and doubt
on launching the right hand side which is initially empty of pieces can display a list of commands , these commands stay listed until the first piece is captured
or
on launching you have a splash screen which list commands , press escape or space to start the program
FAFNAV is key fast as f##k navigation , reduce eye wander & click rate
RT#M = i don't care about the user
HCI is king ( human computer interaction )
Once your code is functional , then start working that interface
programmers are nerdy geeks but they have to learn to switch hats when producing complete works ( i am a designer first, so my code is awful , it will hurt your eyes )
Yours is the best FB chess prog i have seen so far , it is worthy of that extra polish
I have just noticed that RT#M is filtered , loooool
on launching the right hand side which is initially empty of pieces can display a list of commands , these commands stay listed until the first piece is captured
or
on launching you have a splash screen which list commands , press escape or space to start the program
FAFNAV is key fast as f##k navigation , reduce eye wander & click rate
RT#M = i don't care about the user
HCI is king ( human computer interaction )
Once your code is functional , then start working that interface
programmers are nerdy geeks but they have to learn to switch hats when producing complete works ( i am a designer first, so my code is awful , it will hurt your eyes )
Yours is the best FB chess prog i have seen so far , it is worthy of that extra polish
I have just noticed that RT#M is filtered , loooool
-
- Posts: 1006
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
Good ideas.TESLACOIL wrote: on launching the right hand side which is initially empty of pieces can display a list of commands , these commands stay listed until the first piece is captured
or
on launching you have a splash screen which list commands , press escape or space to start the program
I added "Exit=ESC" in the window title. I'm thinking about the way to stop the "auto" play.
Thank you for your kind support !
-
- Posts: 1006
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
Here is the "anti-pawn-promotion defense" I've found :TESLACOIL wrote: h2>h4
h5
h6
pxp
pxr (Queen)
Code: Select all
for ij=1 to len(c06(ii))/4' next opponent's moves
nc3=nr_caz(mid(c06(ii),1+4*(ij-1),2))' start square
nc4=nr_caz(mid(c06(ii),3+4*(ij-1),2))' arrival square
if nature(oc1(ii,nc3))=pion then' pawn moves
select case as const trait
case 0
if ligne(nc4)=6 then n23=-3' Give up that move and do something
case 1
if ligne(nc4)=1 then n23=-3' to stop the pawn !
end select
end if
next ij
If you have time and want to see the result you can paste it in "esch13.bas", just before :
Code: Select all
n99(ii)=0
-
- Posts: 1006
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
-
- Posts: 1006
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
-
- Posts: 3908
- Joined: Jan 01, 2009 7:03
- Location: Australia
I used the online google translator,Roland Chastain wrote:Could anyone traduce for me in english this message :
Thanks !"Pour déplacer une pièce, cliquez sur la case de départ,
puis sur la case d'arrivée. Appuyez sur une touche..."
"To move a piece, click on the drawing board,
then the destination square. Press any key ... "
:)
I guess "drawing board" means "chess board"?
Which I would clean up as,
"To move a piece, click on the piece you wish to move and then click on the square you wish to move it to."
Yahoo Babel fish http://babelfish.yahoo.com/translate_txt gives;
" To move a part, click on the starting box, then on the box d' arrival. Press on a key… "
" To move a part, click on the starting box, then on the box d' arrival. Press on a key… "
I'm happy to say to you that the "alone lateral pawn attack" doesn't succeed any longer ! Thank you for the indication.
aww....but is was such a fun opening
....& I managed to take all its pieces for the loss of one errant knight
It is kind of fun to play against a weak AI .... At times Rybka has me pacing the room with queen odds
even GMs lose to rybka with with a pawn and a move advantage when its run on a fast pc
I can handle losing to a machine....but losing queen odds in blitz is taking the biscuit and shoving it where the sun don't shine lol...if ever they develop a special opening book for queen odds im going to be in real trouble!
aww....but is was such a fun opening
....& I managed to take all its pieces for the loss of one errant knight
It is kind of fun to play against a weak AI .... At times Rybka has me pacing the room with queen odds
even GMs lose to rybka with with a pawn and a move advantage when its run on a fast pc
I can handle losing to a machine....but losing queen odds in blitz is taking the biscuit and shoving it where the sun don't shine lol...if ever they develop a special opening book for queen odds im going to be in real trouble!
-
- Posts: 1006
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
http://www.wikispaces.com/ = 0$ = make how you like it
http://asimov1.wikispaces.com/FB+by+example
http://freebasicportal.wikispaces.com/
1 link on your program (splash screen ) takes you to a multilingual picture gallery
People can download versions & instructions of your chess program
http://asimov1.wikispaces.com/FB+by+example
http://freebasicportal.wikispaces.com/
1 link on your program (splash screen ) takes you to a multilingual picture gallery
People can download versions & instructions of your chess program
I had not proposed translation, because my English is not excellent, but still!Roland Chastain wrote:Thanks ! I keep it.BasicCoder2 wrote:"To move a piece, click on the piece you wish to move and then click on the square you wish to move it to."
For a more concise help:
To move a piece, click on it then click on the target square.
-
- Posts: 1006
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact: