Update comments

This commit is contained in:
Ole Morud
2022-06-22 20:21:42 +02:00
parent 36005acfec
commit 076ef2071e

View File

@@ -41,7 +41,6 @@ int main(){
do_turn(turn++, board); do_turn(turn++, board);
} }
return 0; return 0;
} }
@@ -75,11 +74,11 @@ void print_board(int* board){
other white chess pieces. (matches macro definitions) other white chess pieces. (matches macro definitions)
(https://en.wikipedia.org/wiki/Chess_symbols_in_Unicode) (https://en.wikipedia.org/wiki/Chess_symbols_in_Unicode)
The unicode symbol is calculated from adding 0x2653 and the The unicode symbol is calculated from adding 0x2653 with the
piece value. piece value.
*/ */
for(int i=0; i<8; i++){ for(int i=0; i<8; i++){
printf("\n %i ", 8-i); // number coordinates printf("\n %i ", 8-i); // print number coordinates on y-axis
for(int j=0; j<8; j++){ for(int j=0; j<8; j++){
int p = board[i*8+j]; int p = board[i*8+j];