An environment can contain information that an agent does not observe directly. A camera image, a sensor reading, or a text description is an observation of a situation, not necessarily a complete state.
When building a toy environment, decide what information is visible and what remains hidden. This choice changes the problem: predicting from a full state differs from inferring missing context from a sequence.
Keep the representation connected to the question you want to study. More detail is not always more useful if the task only depends on a small set of variables.
The tiny world simulator intentionally exposes its full grid state. It illustrates transitions, not the difficulty of learning a representation from raw sensory input.
Put the idea to work.
Move through a small deterministic grid and inspect the state transitions behind each action.
Tiny world simulator