Use a miniature cellular automaton to determine which spaces in a swamp room will become water, rather than using a fixed checkerboard. This may not work well for tiny rooms, so enforce a minimum size constraint on what can become a swamp room if necessary.