package BOLO.services;

import BOLO.model.BoloUser;

public class UserService {
    //returns a random character for use in the grid card
    public String randomCharacter(){
        String chars = "123456789ABCDEFGHIJKLMNPQURSTUVWXYZ";
        return "" + chars.charAt(((int) Math.floor(Math.random() * (chars.length() - 1))));
    }

    public String[][] newBingoCard(BoloUser user){
        String[][] card = new String[7][10];
        for (int i = 0; i < card.length; i++) {
            for (int j = 0; j < card[i].length ; j++) {
                card[i][j] = randomCharacter() + randomCharacter();
            }

        }
        return card;
    }
}
