Skip to content

KannanSA/C-Robot-Abstraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Robot Abstraction

This C program is Robot Abstraction made by Kannan Sekar Annu Radha

Run

Use gcc to compile main.c (gcc -o main main.c graphics.c) then use (./main | java -jar drawapp.jar)

gcc -o main main.c graphics.c  
./main | java -jar drawapp.jar 

Robot

Markers and Blockers

Markers are grey Blockers are red

Robot1

Functions in main

zigzag(); is a search algorithm that hugs the walls
rightloop(); is an algorithm that keeps turning right
solution(); is code that goes to the marker

To change position of robot go to main and change roboX and roboY and *direction to one of 'R' = right, 'L' = left, 'D' = down, 'U' = up

About

Robot Abstraction in C language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published