package com.javarush.task.pro.task05.task0529;

/*
Галаксианские роботанки (4)
*/

public class Solution {
    public static void main(String[] args) {
        String[][] chessBoard = new String[8][8];
        String[] letters = new String[]{"a", "b", "c", "d", "i", "f", "j", "h",};
        int[] numbers = new int[]{8, 7, 6, 5, 4, 3, 2, 1};
        for (int i = 0; i < chessBoard.length; i++) {
            for (int j = 0; j < chessBoard[i].length; j++) {
                if ((i + j) % 2 == 0) {
                    chessBoard[i][j] = "W"; // Black
                } else {
                    chessBoard[i][j] = "B"; // Black
                }
            }
        }


        for (int i = 0; i < chessBoard.length; i++) {
            for (int j = 0; j < chessBoard[0].length; j++) {
                for (i = 0; i < letters.length; i++) {
                    System.out.print(" " + chessBoard[i][j] + letters[i] + numbers[j] + " ");
                }
                System.out.println();
            }
        }
    }
}