Skip to content

KuschL/catch-the-rabbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catch the Rabbit

Your task is to catch the rabbit! The rules are simple:

  • there are 100 boxes
  • the rabbit spawns randomly in one of them
  • the rabbit will go left or right before you can look into one box
  • you can look 1 time at a turn
  • if you look at the box the rabbit is in, you have won

Can you find the algorithm that always catches the rabbit?

To solve the small logic task simply edit the file src/look.js. The code will run in a loop and if you catch the rabbit you will get a hint.

This project was bootstrapped with Create React App.

Start the riddle

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

About

Small logic task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published