That's great, Johan. I suspect it will be alot of work. Good luck and thanks for contributing.
Randy
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/53a2c1fc-0866-48a2-81ee-b897abba4488n%40googlegroups.com.
Hi Johan,
You probably want to look at server.py and the web folder. I don't know of any documentation on how it works. Hopefully someone knowledgeable can provide some help.
Randy
To view this discussion visit https://groups.google.com/d/msgid/picochess/ee60ed12-d1fd-428a-8648-baca9e3bb8b2n%40googlegroups.com.
The web server in the PicoChess project is primarily built using Python and is structured to facilitate the management and control of chess games played on a Raspberry Pi with various eBoards. The main components of the web server are:
server.py: This is the main script that runs the web server. It handles incoming HTTP requests, manages game sessions, and communicates with the chess engines.
picochess/web/: This directory contains additional files and scripts that support the web server's functionality. It includes HTML templates, JavaScript files, and other resources needed for the web interface.
The web server serves several key functions:
Game Management: The server allows users to start, stop, and manage chess games. It keeps track of game states and updates the web interface accordingly.
Engine Communication: The server communicates with various chess engines to process moves and provide real-time updates to the web interface. This allows users to play against different engines and follow the games on the display.
User Interface: The web server provides a user-friendly interface for controlling the chess games. This includes buttons and controls for making moves, adjusting game settings, and viewing game history.
Real-Time Updates: The server ensures that the web interface is updated in real-time as the game progresses. This includes displaying the current board state, move history, and engine analysis.
server.py: This script initializes the web server, sets up routes for handling HTTP requests, and manages the game sessions. It uses a web framework (likely Flask or Django) to handle requests and serve the web pages.
HTML Templates: Located in the picochess/web/ directory, these templates define the structure of the web pages. They include placeholders for dynamic content such as the current board state and game status.
JavaScript Files: These files add interactivity to the web interface. They handle user inputs, update the board state, and communicate with the server to fetch real-time data.
CSS Files: These files style the web interface, ensuring it is visually appealing and easy to navigate.
Starting the Server: The server.py script is executed, which starts the web server and listens for incoming HTTP requests.
Handling Requests: When a user interacts with the web interface (e.g., making a move), the browser sends an HTTP request to the server.
Processing Requests: The server processes the request, updates the game state, and communicates with the chess engine if necessary.
Serving Responses: The server sends back an updated HTML page with the new game state, which the browser renders for the user.
This setup allows users to play chess games on a Raspberry Pi with various eBoards, control the games through a web interface, and follow the games on a display.
I hope this analysis helps! If you have any more questions or need further clarification, feel free to ask.
To view this discussion visit https://groups.google.com/d/msgid/picochess/524ddb24-34d6-4b4b-9416-fbf2949f6d35n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picochess/CAE5WduupNJM4%2BgMd3KEn0COYNM8tUdB5Z_71L1a7%2BgPfqjcoYw%40mail.gmail.com.
That's great progress, Johan. Well done!
Randy
To view this discussion visit https://groups.google.com/d/msgid/picochess/f43e8f7d-25cd-41f6-9ed9-01b51330a690n%40googlegroups.com.
Next for me is to try to locate how Analysis (Hont On) and Brain (Ponder On) modes display their result, and if there is a 2sec timer somewhere to display updates.
As a temporary trick these two modes now display "computer move", but you don't have to make that move if you don't want to.
This opens the question what the modes should actually do. There is a description from 2016 online and I wonder if that is the thing I should try to restore. I tried to make the minimal changes in the picochess.py main state but still it behaves strange due to the fact that there is no "eternal mode" in the new chess uci... the closest one gets is to turn on pondering when calling engine play(). I have not yet had time to test that.
To view this discussion visit https://groups.google.com/d/msgid/picochess/47691949-05f7-4344-93f1-cd82b814dc1dn%40googlegroups.com.
Hi Johan,
Ponder ON just allows the engine to think on your time if supported by the engine. Analysis allows the engine to continuously calculate the score while you make the moves on the board, if we're talking about the same options.
Randy
To view this discussion visit https://groups.google.com/d/msgid/picochess/fddfc794-cd1c-410e-ab09-997ac7257fd3n%40googlegroups.com.
13. Renaming of the play modes! Now we have:
# New mode name Old mode name
# a5 NORMAL (rolling info display off by default) NORMAL
# b5 PONDER ON (rolling info display on by default) BRAIN
# c5 MOVE HINT ANALYSIS
# d5 EVAL.SCORE KIBITZ
# e5 OBSERVE OBSERVE
# f5 ANALYSIS (flexible option on by default) PONDER
# g5 TRAINING (this is new in 2.00) -
# h5 REMOTE (working again from 1.00 on) REMOTE
Original (these are the old ones, new naming see above) description:
Playing/Training Modes
When using these modes, please be patient and don’t rush moves. Allow a few seconds for the scores and moves to appear. If you see any bug when rushing moves, let us know on the mailing list.
Game mode is the regular mode. If you used one of the other modes, you can return back to game mode by putting the extra white queen on A5. You can also press the fourth button to enter the menu (afterwards choose the Mode submenu) to toggle over the modes (Qa5-Qf5,Qh5 only working in the starting position) see below.
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picochess/bf0074e9-7814-491f-a16f-eea5c926394bn%40googlegroups.com.
Am 16.11.2024 um 19:10 schrieb RandyR <randy...@gmail.com>:
Ok. I see the option(s) in picochess.ini:
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picochess/504de1c7-dc31-48ec-ae98-35fbb2e1f05fn%40googlegroups.com.

Am 16.11.2024 um 21:03 schrieb RandyR <randy...@gmail.com>:
Confirmed. I was playing really bad! I just didn't believe the score display of -82.41! I must have made a mistake with Fritz when making the moves. Time to take a break. :^)
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picochess/2abb9a82-bed9-43c2-831f-14586a8fc6dbn%40googlegroups.com.
That's a pretty useful option. Thanks for clarifying, Dirk.
Randy
To view this discussion visit https://groups.google.com/d/msgid/picochess/0969E704-5A45-40D8-91F6-0D02584B8D6D%40googlemail.com.
Make sure you are using Pulse audio and not PipeWire. You can select it in raspi-config. Another thing to look at is the picochess.log file. Set the log level to debug in picochess.ini. you should be able to see at what times the audio is sent and perhaps see if anything is hanging around that time or if there are warnings. Also, perhaps monitor processes with htop when the delays are happening. Maybe you are running out of cpu resources.
Randy
To view this discussion visit https://groups.google.com/d/msgid/picochess/72070cf1-be54-4819-b063-8bd89365333dn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picochess/466997a6-ccc7-4f91-b551-fc881faf9c20n%40googlegroups.com.