src/Writer.java
/**
     * Converts the Snake LinkedList's data values into a list of strings
     */
Converts the Snake LinkedList's data values into a list of strings
Converts the Snake LinkedList ' s data values into a list of strings
public List<String> snakecleaner() {
        List<String> b = new LinkedList<String>();
        for (Snakeunit a : snake) {
            int x = a.getPx();
            int y = a.getPy();
            int vx = a.getVx();
            int vy = a.getVy();
            b.add(x + ";" + y + ";" + vx + ";" + vy);
        }
        return b;
    }
public List < String > snakecleaner ( ) { List < String > b = new LinkedList < String > ( ) ; for ( Snakeunit a : snake ) { int x = a . getPx ( ) ; int y = a . getPy ( ) ; int vx = a . getVx ( ) ; int vy = a . getVy ( ) ; b . add ( x + ";" + y + ";" + vx + ";" + vy ) ; } return b ; }
Converts the Snake LinkedList's data values into a list of strings
Converts the Snake LinkedList ' s data values into a list of strings