Code edit (2 edits merged)
Please save this source code
User prompt
Make the board 10x11, and the extra squares, known as castles, protrude from the left side of the ninth row and the right side of the second row.
Code edit (1 edits merged)
Please save this source code
User prompt
The vizier and the king's royal guards switch places
User prompt
The vizier and the king's royal guards switch places
User prompt
Add a “promotion” mechanic to the game. If the Vizier reaches the opponent's last square, it should be “promoted” and permanently gain the ability to move 8 spaces
User prompt
The vizier closes the diagonal at the beginning of the game.
User prompt
Restrict the vizier's movements to one square left, right, forward, and backward, and when he reaches the opponent's last square, set him to move eight squares left, right, forward, backward, and diagonally.
User prompt
Pawns can move two steps forward on their first move
User prompt
Please fix the bug: 'RangeError: Maximum call stack size exceeded' in or related to this line: 'var moves = piece.getValidMoves();' Line Number: 800
User prompt
Integrate chess rules into the game
Code edit (1 edits merged)
Please save this source code
User prompt
Timurlenk Chess Master
Initial prompt
Make me a Timurlenk chess game
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
}); /****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});