Skip to content

czarniek/mBlock-robot-project

master
Switch branches/tags

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

Latest commit

 

Git stats

Files

Permalink
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