This repository contains two C programs: game.c and robot.c.
game.c is a simple game program. This file performs the graphics modifications and game logic. To explore the map, the program employs Depth-First Search algorithm.
robot.c is a program that simulates a robot's movements.
- WINDOW_HEIGHT (make sure height and width is a multiple of 25)
- WINDOW_WIDTH
- totalMarkerCount
- totalObstacleCount
- randomizedArena -> make "true" if you want a completely randomized arena and "false" if you want the game to run with pre-determined values.
- also feel free to change the constant values at randomArena() function to increase or decrease the percantage of obstacles and markers present!
- sleepTime -> decrease to make robot move faster, increase to make it move slower.
To compile game.c, use the following command:
clang game.c robot.c ../drawapp-4.0/graphics.c -o gameTo run the compiled robot program, use the following command:
./game | java -jar ../drawapp-4.0/drawapp-4.0.jar Ece Okutan