Spark! Fuzzy Logic Editor Help


Variables | Sets | Rules | API | Integration | Tutorial


RARS

RARS (Robot Auto Racing Simulator) according to it's "main" web site (www.ebc.ee/~mremm/rars/rars.htm) is:

a computer programming contest where everyone with little knowledge of programming and strong interest of racing can participate. The latter is even more important. Your task is to make a program that drives a car around in closed racing track.

Why Use RARS?

We're using RARS for a demo because it hides all the nasty physics and graphics details from us.  All we have to do is write a "robot", compile and we're done.

Changes To RARS

We made a few changes to RARS to help with this tutorial.  The following is a list of the changes:

  • Added a "Pause" menu.  This allows you to pause RARS, examine what's going on in Spark!, make changes if needed, and continue running RARS
  • Made SparkTutorial01 the first robot.  This allows you to run RARS with just one car racing and it'll be SparkTutorial01
  • Colored track - we alternate between gray and white for the color of different sections of track.  Since the robots get most of their information in terms of track sections, this helps in debugging.

How To Build A Robot

While you will not have to code a robot for this tutorial, having a knowledge of robot building will be helpful.  

The RARS tutorials presented here are by Mitchell Timin.  Any and all credit must go to him.  Only slight changes were made by us to correct some spelling and add hyperlinks between tutorials.