Formatting
This commit is contained in:
3
chess.c
3
chess.c
@@ -53,8 +53,6 @@ void setcolor(int mode, int r, int g, int b){
|
|||||||
* Prints the board
|
* Prints the board
|
||||||
*/
|
*/
|
||||||
void print_board(int* board){
|
void print_board(int* board){
|
||||||
wchar_t piece;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The loop checks if the tile is empty and prints ' ' if so.
|
The loop checks if the tile is empty and prints ' ' if so.
|
||||||
Otherwise the foreground color is set to match the player
|
Otherwise the foreground color is set to match the player
|
||||||
@@ -68,7 +66,6 @@ void print_board(int* board){
|
|||||||
The unicode symbol is calculated from adding 0x2653 and the
|
The unicode symbol is calculated from adding 0x2653 and 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); // number coordinates
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user