package com.github.donkirkby.vograbulary;

import com.badlogic.gdx.Preferences;

public class VograbularyPreferences {
    private static final String DEFAULT_STUDENT1_NAME = "Alice";
    private static final String DEFAULT_STUDENT2_NAME = "Bob";
    private static final int DEFAULT_VOCABULARY_SIZE = 5000;

    private enum Fields { 
        STUDENT1_NAME, 
        STUDENT2_NAME, 
        COMPUTER_STUDENT_VOCABULARY_SIZE 
    };
    
    private Preferences preferences;
    
    public VograbularyPreferences(Preferences preferences) {
        this.preferences = preferences;
    }

    public String getStudent1Name() {
        return preferences.getString(Fields.STUDENT1_NAME.name(), DEFAULT_STUDENT1_NAME);
    }
    public void setStudent1Name(String student1Name) {
        preferences.putString(Fields.STUDENT1_NAME.name(), student1Name);
        preferences.flush();
    }
    
    public String getStudent2Name() {
        return preferences.getString(Fields.STUDENT2_NAME.name(), DEFAULT_STUDENT2_NAME);
    }
    public void setStudent2Name(String student2Name) {
        preferences.putString(Fields.STUDENT2_NAME.name(), student2Name);
        preferences.flush();
    }
    
    public int getComputerStudentVocabularySize() {
        return preferences.getInteger(
                Fields.COMPUTER_STUDENT_VOCABULARY_SIZE.name(), 
                DEFAULT_VOCABULARY_SIZE);
    }
    public void setComputerStudentVocabularySize(int vocabularySize) {
        preferences.putInteger(
                Fields.COMPUTER_STUDENT_VOCABULARY_SIZE.name(), 
                vocabularySize);
        preferences.flush();
    }
}

@@ -112,16 +112,35 @@
 ences %7B%0A
+    // stopJesting%0A
     priv
@@ -319,16 +319,37 @@
  = 5000;
+%0A    // resumeJesting
 %0A%0A    pr

Fix one more jester complaint.