Code edit (6 edits merged)
Please save this source code
User prompt
Add new piece: Piece name = Minister Movements = 1 square diagonally Special ability = Promotion When it reaches the opponent's last square, it can permanently move like a rook and a knight, and can jump over other pieces when moving like a knight
Code edit (7 edits merged)
Please save this source code
User prompt
Set up the chessboard as 10x11, i.e., 10 rows and 11 columns, and leave the pieces where they are
User prompt
Set up the chessboard as 11x10, i.e., 11 rows and 10 columns, and leave the pieces where they are
User prompt
Set up the chessboard to be 10x11 and leave the pieces where they are
User prompt
Set up the chessboard to be 11x10 and leave the pieces where they are
User prompt
Set up the chessboard to be 11x10 and do not change the position of the pieces
User prompt
Set up the chessboard to be 10x11 and do not change the position of the pieces
User prompt
Set up the chessboard to be 10x11
Code edit (1 edits merged)
Please save this source code
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
});