Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Need help making a scratch chess engine!
- MasterTCO
-
Scratcher
10 posts
Need help making a scratch chess engine!
So I've decided to make my own chess engine on scratch, but I'm having trouble figuring out where to start. I know there are basic rules that need to be implemented into the program and that the board and all the pieces have to be set up right, but making a good chess engine is where the trouble is at.
Of course, you have to make the engine look at every move possible and even think a few moves ahead, then make it do a process of elimination and erase all of the bad moves it could've made, ending up with only one move that it thinks is the best move (if there are multiple best moves, I can add a randomizer script that chooses, or I can make the chess engine think one more move ahead, using just those best moves, to break the tie.).
Here are some things I need to know before starting:
With best regards, MasterTCO.
Of course, you have to make the engine look at every move possible and even think a few moves ahead, then make it do a process of elimination and erase all of the bad moves it could've made, ending up with only one move that it thinks is the best move (if there are multiple best moves, I can add a randomizer script that chooses, or I can make the chess engine think one more move ahead, using just those best moves, to break the tie.).
Here are some things I need to know before starting:
- How many variables are involved?
- How can you tell the engine where it is allowed/not allowed to move at?
- How does the move value system work?
With best regards, MasterTCO.
Last edited by MasterTCO (Feb. 21, 2020 12:51:49)
- ArnoHu
-
Scratcher
1000+ posts
Need help making a scratch chess engine!
So I've decided to make my own chess engine on scratch, but I'm having trouble figuring out where to start. I know there are basic rules that need to be implemented into the program and that the board and all the pieces have to be set up right, but making a good chess engine is where the trouble is at.
Of course, you have to make the engine look at every move possible and even think a few moves ahead, then make it do a process of elimination and erase all of the bad moves it could've made, ending up with only one move that it thinks is the best move (if there are multiple best moves, I can add a randomizer script that chooses, or I can make the chess engine think one more move ahead, using just those best moves, to break the tie.).
Here are some things I need to know before starting:
- How many variables are involved?
- How can you tell the engine where it is allowed/not allowed to move at?
There is a GOK chess engine, I know that. But I'm wanting to make my own. If you can help me with this, it would be an amazing project!
- How does the move value system work?
With best regards, MasterTCO.
Hi,
this is a good article which explains most of the basics: https://www.freecodecamp.org/news/simple-chess-ai-step-by-step-1d55a9266977/
HTH!
- Pranav_reii
-
Scratcher
67 posts
Need help making a scratch chess engine!
Hello, This Seams Tough, Even I Tried About A Year Ago, I Failed But Now I Improved And Fixed The Problems And Started again. I Will Make The Project Within A Month And A yotube Tutorial On Easy-Extreme Chess Ai.
- hakergangster13
-
Scratcher
1 post
Need help making a scratch chess engine!
I don't really know to make a chess online on scratch. Even though I have recreated slither.io and a bunch of other games, I have not been successful making the game. I have attempted 

May someone help me make a game of chess is scratch?


May someone help me make a game of chess is scratch?- Discussion Forums
- » Help with Scripts
-
» Need help making a scratch chess engine!