Simple police vs thief game, where thief with light sensor has to sneak past police-bots with flashlights
czarniek/mBlock-robot-project
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Patrol Team general idea: 1. 4 bots (or less) act as police with a flashlight attached. 1 bot acts as a thief (probably best not to be a ranger version but dashing raptor or the bird). 2. Set playing arena (with a black or white tape[depends on surface's color]). 3. Put all bots inside arena, thief in the center. 4. Start game. 5. Police start looking for a thief with their flashlights. 6. Thief has to avoid police-bots and try to get to the border of arena (which would be a win for him). 7. When flashlight flashes on thief and his light sensor picks it up, it makes a losing sound and game is over for him. 8. Police-bots, upon hearing thief's sound they turn on their police sirens indicating a win for them. Police robot: 1. Move around avoiding obstacles (other police-bots) 2. When thief's sound is heard, make police siren sound. 3. Line-following sensor makes it impossible for police-bots to leave arena (they turn around and continue patrolling) Thief robot: 1. Move around avoiding obstacles (police-bots) 2. When light sensor picks something from far away, backup and try another way 3. When light sensor picks something from close distance - make a game over sound. 4. When line-following sensor finds a line -> move forward for few seconds to exit the arena and then play victory sound
About
Simple police vs thief game, where thief with light sensor has to sneak past police-bots with flashlights
Resources
Stars
Watchers
Forks
Releases
No releases published