Closed Jashani closed 3 years ago
We need to create some function translate(Board, Move, NewBoard), where Board is the current board, Move is the move to be made, and NewBoard is Board after Move has been made. Board and NewBoard must be of format [R8,R7,R6,R5,R4,R3,R2,R1]
translate(Board, Move, NewBoard)
Board
Move
NewBoard
[R8,R7,R6,R5,R4,R3,R2,R1]
We need to create some function
translate(Board, Move, NewBoard)
, whereBoard
is the current board,Move
is the move to be made, andNewBoard
isBoard
afterMove
has been made.Board
andNewBoard
must be of format[R8,R7,R6,R5,R4,R3,R2,R1]