degoldschmidt_generative-art/01-random_walk/a_simple_random_walk_sol/a_simple_random_walk_sol.pde
// simple random walk
// author: dennis goldschmidt
// date: 11 Aug 2017
// ---
// Simple random walk in 4 directions
// ---

//define your state variables
//float x, y, xold, yold;
//int choice;
//int step = 10;

// setup function for setting up your canvas (e.g., background color, size, etc.)
//void setup () {
//  size(800, 800);
//  background(0);
//  x = width/2;
//  y = height/2;
//}

// draw function that updates for every step
//void draw () {
//  xold = x;
//  yold = y;
//  stroke(255); // white stroke
  //point(x, y) // point at position x,y ALSO POSSIBLE TO USE DOTS
  
//  choice = int(random(4)); // random choice of 0,1,2,3
//  if (choice == 0){
//    x += step;
//  }
//  else if (choice == 1){
//    y += step;
//  }
//  else if (choice == 2){
//    x -= step; 
//  }
//  else {
//    y -= step; 
//  }
//  line(xold,yold, x, y); // at position x,y
//}