CS 2112 Fall 2025

Slow Crappy Demo Client

Login

Your server must have CORS headers configured to allow connections from this domain.

If you're using the server code from lab, your code already does this.

Otherwise, if you're using Spark, you'll need to add the following calls after your call to Spark.port():

Spark.after((request, response) -> {
    response.header("Access-Control-Allow-Origin", "*");
});
Spark.options("/*", (request, response) -> {
    response.header("Access-Control-Allow-Methods", "GET, POST, DELETE");
    response.header("Access-Control-Allow-Headers", "Content-Type");
    response.status(200);
    return "OK";
});

World Display

Zoom:

Name:

Size (w x h):

Population:

Steps:

Critter Inspection

Species:

Location (c, r):

Direction:

Size:

Memory

Program


                        
                    

Debug Raw Server Responses

This client updates once a second. Below are the raw responses received for the GET /world, GET /critters, and GET /critter/{id} endpoints.

World Dump

Note this client does not hit the GET /world endpoint with the query parameters for a subsection of the world. If you wish to test this behavior, you can use the following form:

Critters Dump

Selected Critter Dump