DE | EN

Cat and mouse game

In this game, as you might guess, the cat chases the mouse.

To control the mouse on the playing field below, knowledge in network programming is needed.

Mathematical situation

A mouse swims in a circular pond while the cat waits for it on the shore. It is assumed that the mouse can run faster on land than the cat. The mouse's goal is to reach the shore without the cat already waiting at the corresponding shore point. If this succeeds, the mouse can escape.

However, the swimming mouse is slower than the cat on land. The exact factor (speed of the cat on land divided by the speed of the mouse in the water) depends on the game level:

Level 1: Factor 3.0
Level 2: Factor 4.0
Level 3: Factor 4.5

The cat never enters the water, because cats are afraid of water. Thus, the mouse is safe inside the pond at first.

Youtube reference

Warning, spoiler!
The Youtube video Game of Cat and Mouse from the Numberphile channel inspired the implementation of this network game. The video describes the rules and also a solution approach.

Playing field

Room ID to connect: - no room open -
The script to open a room is inactive. Maybe javascript is disabled?

Control

You can control the mouse by implementing an appropriate network program. The server will then control the cat.

For details, see the protocol specification.

Image sources

The picture of the cat was taken from cliparts.co
The image of the mouse is from 1001freedownloads.com and licensed as CC0 1.0 Universal (Public Domain Dedication).