You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
322 B
19 lines
322 B
#include <iostream>
|
|
#include <stdio.h>
|
|
#include <string>
|
|
#include "constants.h"
|
|
|
|
// See constants.h for CHESS_CHARS, and DEFAULT_BOARD
|
|
|
|
using namespace std;
|
|
|
|
int main(){
|
|
for (int i = 0; i < 8; ++i){
|
|
for (int j = 0; j < 8; ++j){
|
|
int ix = (i*8) + j;
|
|
cout << CHESS_CHARS[DEFAULT_BOARD[ix]];
|
|
}
|
|
cout << endl;
|
|
}
|
|
}
|