src/main/java/cursor/rybak/view/Message.java
/**
     * @param options array of options (aliases for move)
     */
@param options array of options (aliases for move)
@param options array of options ( aliases for move )
private static void printMoveOptions(String[] options) {
        List<String> optionsList = new ArrayList<>();
        Arrays.stream(options)
                .forEach(option -> {
                    Moves move = Moves.valueOf(option);
                    optionsList.add(
                            String.format("%s - %s",
                                    GREEN + move.getOptionAlias() + RESET,
                                    move.getOptionName())
                    );
                });
        System.out.format("\n\t\tChoose move option: [%s] -> ", String.join(", ", optionsList));
    }
private static void printMoveOptions ( String [ ] options ) { List < String > optionsList = new ArrayList < > ( ) ; Arrays . stream ( options ) . forEach ( option -> { Moves move = Moves . valueOf ( option ) ; optionsList . add ( String . format ( "%s - %s" , GREEN + move . getOptionAlias ( ) + RESET , move . getOptionName ( ) ) ) ; } ) ; System . out . format ( "\n\t\tChoose move option: [%s] -> " , String . join ( ", " , optionsList ) ) ; }
@param options array of options (aliases for move)
@param options array of options ( aliases for move )