Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QBJS - Chess API
#41
@dbox
thanks for appreciation of interface:
I think that also 1) the formatted output of available moves  2) the short time limit of press a key for continuing and 3) the realtime output of Square under the mouse pointer are interesting...

About the interface, IMHO, it needs a simpler structure for settings of the game added to a default setting on starting and a general main screen.

I notice that now running my code in this QBJS codebox above I have a different output...(some black vertical lines between the columns)...Does this effect depend on the browser?
Reply
#42
(02-24-2026, 10:23 PM)TempodiBasic Wrote: I notice that now running my code in this QBJS codebox above I have a different output...(some black vertical lines between the columns)...Does this effect depend on the browser?
Hrm, I don't think this is the browser.  I'm seeing the same black vertical lines when I run it.  I noticed, however, if I changed lines 424-426 to print 3 spaces instead of 2, it looks more like the output from your screenshot:

Reply
#43
@dbox thanks for finding the issue!
In my original code the square are 3 spaces for 3 rows!
I dunno how it is possible that a space has been missed using a simple select, copy and paste sequence by Hotkey combo in web browser in my Kubuntuland!
Cause I was getting the issue to share code of Chess interface, also if I was following your specific and correct instructions given  in the previous post in this thread for getting  the right use of the QBJS code box: I used first Ctrl+A (select all keys' combo), then Ctrl+C (the copy keys' combo) and at the end Ctrl+V (the paste keys' combo)... but th result is missing a space in the 3  constant string made of 3 spaces!
Weird copy/paste!


[Image: White-on-Left-in-Chess-Interface-0-1-for-CHESS-API.png]
Reply
#44
@Dbox
please tell me why this doesn't work...or better how can I use JSCHESS API..
Code: (Select All)

' this doesn't work
const game1 = newGame()
' and also 
' redim game1
' game1 = NewGame()
'

Thanks
Reply
#45
(03-01-2026, 07:02 PM)TempodiBasic Wrote: @Dbox
please tell me why this doesn't work...or better how can I use JSCHESS API..
Hey @TempodiBasic, you will need to use the wrapper API I created to interact with the JS chess engine.  Several posts ago I sent a link to the documentation I created for the usage of the API.  You can find it here:

https://github.com/boxgaming/qbjs-lib/bl...-engine.md

Let me know if you have any other questions.
Reply
#46
Thanks @dbox... be patient with me I'm often Lucky...
I have chosen the wrong path following this other link JS CHESS engine
as soon as,  I'll post something forward here
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Amazing Grace to test out Web Audio API CharlieJV 0 438 11-30-2022, 03:09 AM
Last Post: CharlieJV

Forum Jump:


Users browsing this thread: 2 Guest(s)