@ -350,6 +350,8 @@ public class Model {
}
public void createNewGame(String difficulty) {
JSONObject jsonObject = modelToJson();
@ -103,6 +103,18 @@ class TasksFrameTest {
assertEquals(1,p3);
@Test
void test_quer(){
TasksFrame tasksFrame = new TasksFrame();
int q = tasksFrame.quer(15);
assertEquals(6, q);
int q2 = tasksFrame.quer(23);
assertEquals(5, q2);
int q3 = tasksFrame.quer(235);
assertEquals(10, q3);