/* Stones esoteric programming language
 * (c) 2016 Zack Hixon - see LICENSE.txt */

#[derive(Debug)]
//#[derive(Copy, Clone)]
struct Stone {
    id: i32,
    color: String
}

fn main() {
    let mut stone = Stone {id: 1, color: String::from("yellow")};
    println!("{:?}", stone);

    stone.id = 2;
    stone.color = String::from("blue");

    println!("{:?}", stone);
}


/* Stones esoteric programming language
 * (c) 2016 Zack Hixon - see LICENSE.txt */

#[derive(Debug)]
//#[derive(Copy, Clone)]
struct Stone {
    x: i32,
    y: i32,
    id: i32
}

fn main() {
    let mut stone = Stone {x: 32, y: 32, id: 1};
    println!("{:?}", stone);

    stone.x = 64;
    stone.y = 64;
    stone.id = 2;

    println!("{:?}", stone);
}


--- 
+++ 
@@ -4,18 +4,16 @@
 #[derive(Debug)]
 //#[derive(Copy, Clone)]
 struct Stone {
-    x: i32,
-    y: i32,
-    id: i32
+    id: i32,
+    color: String
 }
 
 fn main() {
-    let mut stone = Stone {x: 32, y: 32, id: 1};
+    let mut stone = Stone {id: 1, color: String::from("yellow")};
     println!("{:?}", stone);
 
-    stone.x = 64;
-    stone.y = 64;
     stone.id = 2;
+    stone.color = String::from("blue");
 
     println!("{:?}", stone);
 }
Change Stone struct\n\nRemove x/y coordinates, change to color. Coords will be handled in some sort of vector probably
