Wolfram Research

Function Repository Resource:


Source Notebook

Create a game in which you must find a monk among many people

Contributed by: Claudio Lobo Chaib Filho


creates a game for trying to find a monk in a crowd of faces.

Details and Options

ResourceFunction["FindTheMonk"] is a game of skill where you must find the only individual who is a monk among many others.
By definition, the function creates a quick and easy game, but there are some options to increase the difficulty and change the game mode.
When you find it, click on the image of the monk with the mouse cursor and a message of congratulations appears on the screen, meaning that you have won the game.
The following options are supported:
"Difficulty" "Easy" (default) difficulty level that can be "Easy", "Medium", "Hard" or "ExtraHard"
"Mode" "Normal" (default) "Normal" or "Inverted" mode
RandomSeeding False if specified, the game can be generated with seed instead of randomly
"Solution" False (default) a solution can be displayed if this option is used with the True argument
One of the options available is to choose the difficulty of the game, which goes from easy (beginner) to extra hard (it is really challenging). By default, the standard difficulty of the game is easy. The options for "Difficulty" are:
"Easy" an easy game for beginners
"Medium" a median increase in the level of difficulty
"Hard" a difficult game for advanced players
"ExtraHard" an extremely challenging game
The game, by definition, is random. With each evaluation it creates a new and unprecedented game. Therefore, another option for the game is the ability to play the same game over and over using the RandomSeeding option. RandomSeeding can take, for example, any number or string as an argument.
A very useful option for the game is "Solution", which together with RandomSeeding can show the answer when it is difficult to find. Argument types for "Solution" are:
False (default) shows no solution
True shows the solution above the image
Finally, there is an option "Mode" for the game, which reverses the roles of the monk and others. That is, with "Mode" set to "Inverted" you need to find the only person who is not the monk. "Mode" arguments are:
"Normal" (default) find where the monk is, among several individuals
"Inverted" find the one who is not the monk, among several who are the monk
All options are available for "Normal" and "Inverted" modes.


Basic Examples

Create a random quick and easy game:



When the monk is found, click on his image with the mouse cursor to display the victory message:



Change the difficulty of the game with the option "Difficulty". The difficulty can be very easy to extra hard:

ResourceFunction["FindTheMonk"]["Difficulty" -> "Hard"]

Change the game mode with the "Mode" option and the "Inverted" argument. In this style of play, the roles are reversed, where it is necessary to find out who is not the monk. All allowed options are the same for this style of play:

ResourceFunction["FindTheMonk"]["Mode" -> "Inverted"]

The RandomSeeding option makes it possible to play the same game multiple times. Together with the "Solution" option, it can be a good option if you cannot find the answer to the game or if you want to help someone else:

ResourceFunction["FindTheMonk"]["Mode" -> "Inverted", "Difficulty" -> "Medium", RandomSeeding -> 347, "Solution" -> True]

Resource History

Related Resources

Author Notes

Have fun! There are easy levels of difficulty and there are very challenging levels of difficulty. Also try the other game mode, the inverted mode, which can be just as or more challenging.

License Information