Ajedrez-Chess

You can share your experience with HMG. Share with some screenshots/project details so that others will also be benefited.

Moderator: Rathinagiri

Post Reply
User avatar
mustafa
Posts: 1177
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Ajedrez-Chess

Post by mustafa »

Hola amigos:
Jugando un poco con ChatGPT, se me ocurrió que
me montara un cronómetro, para poder jugar al Ajedrez.

¿El Tablero, es más complicado, mediante una rutina
encontrada del amigo Javier Tovar, mediante rutina
ON MOUSEDRAG MueveControl(), el problema está cuando
se tiene que matar a la pieza contrincante, que no
sé cómo se puede eliminar?

Espero que lo prueben, y si encuentran alguna solución

PD: ChatGPT ha intentado crear un código que cuando
una ficha tiene que comer a la otra, esta última
tendría que desaparecer del tablero, pero no lo ha conseguido
revisar Error_ChatGPT.txt
Ver juego Parchis --> https://www.hmgforum.com/viewtopic.php?t=7543

*-------------------------- Google -----------------------------*

Hello friends:
Playing around with ChatGPT, it occurred to me that
I will set up a stopwatch so I can play Chess.

Is the Board more complicated, through a routine
found by friend Javier Tovar, through routine
ON MOUSEDRAG MueveControl(), the problem is when
you have to kill the opposing piece, which does not
do I know how to remove it?

I hope you try it, and if you find a solution

PS: ChatGPT has tried to create a code that when
one Chess piece has to eat the other, the latter
It should disappear from the board, but it has not been able to do so
review Error_ChatGPT.txt

See Parcheesi Game ---> https://www.hmgforum.com/viewtopic.php?t=7543
Saludos,Regars,Salam

Mustafa
Attachments
Ajedrez-Chess.zip
(236.71 KiB) Downloaded 261 times
Pantallazo.jpg
Pantallazo.jpg (122 KiB) Viewed 1780 times
User avatar
mustafa
Posts: 1177
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Ajedrez-Chess

Post by mustafa »

Nueva Modificación:
Nuevo Juego, las piezas regresan al lugar inicial en el Tablero

New Modification:
New Game, the pieces return to their initial place on the Board

Ajedrez-Chess1.zip Fecha 03-05-2024
Mustafa :lol:
Attachments
Ajedrez-Chess1.zip
(239.25 KiB) Downloaded 209 times
User avatar
Steed
Posts: 462
Joined: Sat Dec 12, 2009 3:40 pm

Re: Ajedrez-Chess

Post by Steed »

Chess project.(Minigui & HMG)
Chess5.zip
(1.87 MiB) Downloaded 13 times
Chess5.gif
Chess5.gif (1.66 MiB) Viewed 107 times
(don´t forget to install chess_alpha_Font inclued in the zip)

CTRL+M: Show the IA Thinking Monitor (Don´t forge to navigate the Analisys tree)
The pieces can be moved using drag and drop.
Chess, with Human vs. Human, Human vs. AI, and AI vs. AI modes.
Theme settings
IA LAB
Tuning LAB
Can Play using external engines
It can compete in UCI mode under Arena.
Play Book with Clasicc Openings
Copy (CTRL+C) and Paste (CTRL+V) FEN Codes:

Code: Select all

example1: 4r1k1/5ppp/8/8/Q7/8/5PPP/4R1K1 b - - 0 1
example2: 8/5pk1/4p1p1/3pP1P1/p1pP1K2/PpP5/1P6/8 b - - 3 52
example3: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
 

Code: Select all

    ON KEY ESCAPE OF Form_Ajedrez ACTION CancelSelection() // Cancelar selección
    ON KEY CONTROL+Y OF Form_Ajedrez ACTION ( Redo() )
    ON KEY CONTROL+Z OF Form_Ajedrez ACTION ( Undo() )
    ON KEY CONTROL+N OF Form_Ajedrez ACTION ( NewGame() )
    ON KEY CONTROL+E OF Form_Ajedrez ACTION ( ExportFEN() )
    ON KEY CONTROL+I OF Form_Ajedrez ACTION ( ImportFEN() )
    ON KEY CONTROL+P OF Form_Ajedrez ACTION ( ExportPGN() )
    ON KEY CONTROL+O OF Form_Ajedrez ACTION ( ImportPGN() )
    ON KEY CONTROL+G OF Form_Ajedrez ACTION ( SaveGame() )
    ON KEY CONTROL+S OF Form_Ajedrez ACTION ( SaveGame() )
    ON KEY CONTROL+A OF Form_Ajedrez ACTION ( LoadGame() )
    ON KEY CONTROL+L OF Form_Ajedrez ACTION ( LoadGame() ) 
    ON KEY CONTROL+M OF Form_Ajedrez ACTION ( ShowMonitorWindow() )
    ON KEY CONTROL+T OF Form_Ajedrez ACTION ( RunIntegrityTests() )
    ON KEY CONTROL+C OF Form_Ajedrez ACTION ( CopyFENToClipboard() )
    ON KEY CONTROL+V OF Form_Ajedrez ACTION ( PasteFENFromClipboard() )
    ON KEY CONTROL+H OF Form_Ajedrez ACTION ( Test_Syzygy_Directo() )
    ON KEY CONTROL+J OF Form_Ajedrez ACTION ( DownloadMissingSyzygy() )
User avatar
danielmaximiliano
Posts: 2795
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: Ajedrez-Chess

Post by danielmaximiliano »

Hola mustafá y Steed
gracias a uds estoy dando mis primero pasos en Ajedres, es como mi primero "hola mundo" :mrgreen:
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
Steed
Posts: 462
Joined: Sat Dec 12, 2009 3:40 pm

Re: Ajedrez-Chess

Post by Steed »

Hola Daniel

Cuando estes jugando contra la IA, presiona CTRL+M , activa el monitor de pensamiento de la IA que muestra las posibles jugadas que calculo , en esa ventana puedes navegar por el árbol de análisis y va mostrando la animación de las jugadas
ArbolA.png
ArbolA.png (38 KiB) Viewed 80 times

En el Botón de aperturas, puedes seleccionar una apertura y cargarla en el tablero principal para practicar la jugada.
cuando cargues la apertura con CTRL+Z o CTRL+y te vas moviendo en las diferentes jugadas de la apertura

Apert.png
Apert.png (124.2 KiB) Viewed 80 times
En la ventana principal escojes el nivel de dificultad y el modo de Juego (Humano vs Humano, Humano vs IA o IA vs IA)
Niveles.gif
Niveles.gif (13.45 KiB) Viewed 77 times
El botón de configurar te permite , seleccionar el tema, y los valores de estrategia del motor.

Configuración del Motor
♟️ Evaluación Peón pasado 85; pareja de alfiles 56; rey expuesto −65
♞ Movilidad N=5, B=4, R=3
🖥️ CPU/Memoria 6 hilos, 64 MB Hash
🔎 Búsqueda Quietud e iterativa activadas
⚡ Optimizaciones Magic + evaluación dinámica activadas
✂️ Poda LMR, NMP y Delta desactivadas
⏱️ Tiempo Gestión automática activada; 5 s como tiempo fijo
♜ Material MG P=100, C=400, A=401, T=600, D=1400
♚ Material EG P=100, C=290, A=315, T=560, D=1050
📚 Syzygy Desactivado; límite configurado en 6 piezas

Config.png
Config.png (104.84 KiB) Viewed 80 times
También puedes jugar con motores de ajedrez externos (que encuentras en Arena), Para ello en la carpeta \Engines incluyes un archivo Ruta.ini con la ruta donde descargues los motores de arena
Motores2.png
Motores2.png (64.09 KiB) Viewed 78 times
User avatar
Steed
Posts: 462
Joined: Sat Dec 12, 2009 3:40 pm

Re: Ajedrez-Chess

Post by Steed »

English versión
Chess5.zip
(1.87 MiB) Downloaded 7 times
Post Reply