'A8-W','B8-B','C8-W','D8-B','E8-W','F8-B','G8-W','H8-B'
'A7-B','B7-W','C7-B','D7-W','E7-B','F7-W','G7-B','H7-W'
'A6-W','B6-B','C6-W','D6-B','E6-W','F6-B','G6-W','H6-B'
'A5-B','B5-W','C5-B','D5-W','E5-B','F5-W','G5-B','H5-W'
'A4-W','B4-B','C4-W','D4-B','E4-W','F4-B','G4-W','H4-B'
'A3-B','B3-W','C3-B','D3-W','E3-B','F3-W','G3-B','H3-W'
'A2-W','B2-B','C2-W','D2-B','E2-W','F2-B','G2-W','H2-B'
'A1-B','B1-W','C1-B','D1-W','E1-B','F1-W','G1-B','H1-W'
8=A8wB8bC8wD8bE8wF8bG8wH8b
7=A7bB7wC7bD7wE7bF7wG7bH7w
6=A6wB6bC6wD6bE6wF6bG6wH6b
5=A5bB5wC5bD5wE5bF5wG5bH5w
4=A4wB4bC4wD4bE4wF4bG4wH4b
3=A3bB3wC3bD3wE3bF3wG3bH3w
2=A2wB2bC2wD2bE2wF2bG2wH2b
1=A1bB1wC1bD1wE1bF1wG1bH1w
Now that we have the space for the pieces to move. It is time to program each piece.
There are only six different pieces in this game, those are the king, queen, rook, bishop, knight, and pawn.
We must first establish which side goes where.
White is always first and gets placed on the lowest rows. While black goes second and gets placed on the highest rows.
We will assign each piece a value.
King = (k)
Queen =(q)
Rook =(r)
Bishop =(b)
Knight =(n)
Pawn =(p)
Firstly. You're going to want to create a separate board for each piece...
So we will start with king.
Place it in a empty board and it'll look like this:
'A8-W','B8-B','C8-W','D8-B','E8-W','F8-B','G8-W','H8-B'
'A7-B','B7-W','C7-B','D7-W','E7-B','F7-W','G7-B','H7-W'
'A6-W','B6-B','C6-W','D6-B','E6-W','F6-B','G6-W','H6-B'
'A5-B','B5-W','C5-B','D5-W','E5-B','F5-W','G5-B','H5-W'
This story originates from Royal Road. Ensure the author gets the support they deserve by reading it there.
'A4-W','B4-B','C4-W','(k)D4-B','E4-W','F4-B','G4-W','H4-B'
'A3-B','B3-W','C3-B','D3-W','E3-B','F3-W','G3-B','H3-W'
'A2-W','B2-B','C2-W','D2-B','E2-W','F2-B','G2-W','H2-B'
'A1-B','B1-W','C1-B','D1-W','E1-B','F1-W','G1-B','H1-W'
8=A8wB8bC8wD8bE8wF8bG8wH8b
7=A7bB7wC7bD7wE7bF7wG7bH7w
6=A6wB6bC6wD6bE6wF6bG6wH6b
5=A5bB5wC5bD5wE5bF5wG5bH5w
4=A4wB4bC4w(k)D4bE4wF4bG4wH4b
3=A3bB3wC3bD3wE3bF3wG3bH3w
2=A2wB2bC2wD2bE2wF2bG2wH2b
1=A1bB1wC1bD1wE1bF1wG1bH1w
We will make each separate board with one piece.
That will be placed on d4.
Next... we will add every available movement.
That will be marked with '*'
'A8-W','B8-B','C8-W','D8-B','E8-W','F8-B','G8-W','H8-B'
'A7-B','B7-W','C7-B','D7-W','E7-B','F7-W','G7-B','H7-W'
'A6-W','B6-B','C6-W','D6-B','E6-W','F6-B','G6-W','H6-B'
'A5-B','B5-W','*C5-B','*D5-W','*E5-B','F5-W','G5-B','H5-W'
'A4-W','B4-B','*C4-W','(k)D4-B','*E4-W','F4-B','G4-W','H4-B'
'A3-B','B3-W','*C3-B','*D3-W','*E3-B','F3-W','G3-B','H3-W'
'A2-W','B2-B','C2-W','D2-B','E2-W','F2-B','G2-W','H2-B'
'A1-B','B1-W','C1-B','D1-W','E1-B','F1-W','G1-B','H1-W'
8=A8wB8bC8wD8bE8wF8bG8wH8b
7=A7bB7wC7bD7wE7bF7wG7bH7w
6=A6wB6bC6wD6bE6wF6bG6wH6b
5=A5bB5w*C5b*D5w*E5bF5wG5bH5w
4=A4wB4b*C4w(k)D4b*E4wF4bG4wH4b
3=A3bB3w*C3b*D3w*E3bF3wG3bH3w
2=A2wB2bC2wD2bE2wF2bG2wH2b
1=A1bB1wC1bD1wE1bF1wG1bH1w
You might wonder why do all of this when the king moves relatively simple. By this point. It is already incredibly easy to visualize all routes the king could take.
We aren't building 'chess' in our mind for no reason. The whole point is to increase the upper limit of information you can visualize.
These aren't just random numbers and strings. They follow a pattern. Even if you haven't memorized them. It would be easy to write them down from scratch.
We won't be moving on to the next piece yet. You need to master this one. Practice by visualizing every single position.
Place the king on random squares in your visualization. Have all potential paths light up with green. Have blocked (potential capture) paths light up with red (not that you will have any blocked paths with just one piece).
Now, we take a break.
If you rush too much, you'll ruin the entire point of doing all this.
Spend a few months moving the king. You want the strings to update in real time. I don't want you to simply visualize what is happening. You need to construct a log that keeps track of the moves in your mind.
The passwords you have memorized. You want them to update when there is a change. This will be hard at first. But with months of work... it'll become quite easy.
We will spend hours on each piece.
Once you feel you have mastered the 'king'. You can continue.