src/Writer.java
/**
     * writes the snake and food strings into the file 
     */
writes the snake and food strings into the file
writes the snake and food strings into the file
public void gameWriter() {
        if (write) {
            List<String> a = snakecleaner();
            List<String> b = foodcleaner();
            writeStringsToFile(a, PATH_TO_SNAKE, append); 
            writeStringsToFile(b, PATH_TO_FOOD, append);
        }
    }
public void gameWriter ( ) { if ( write ) { List < String > a = snakecleaner ( ) ; List < String > b = foodcleaner ( ) ; writeStringsToFile ( a , PATH_TO_SNAKE , append ) ; writeStringsToFile ( b , PATH_TO_FOOD , append ) ; } }
writes the snake and food strings into the file
writes the snake and food strings into the file