// Arup Guha
// 9/28/2026
// Class to test the Shoe class.

import java.util.*;

public class TestShoe {

	public static void main(String[] args) {

		// Create two Shoe objects.
		Shoe nike = new Shoe("Nike", "Blue", 129.99, 5000000);
		Shoe reebok = new Shoe("Reebok", "White", 119.95, 7000000);
		
		// Walk and print for Nike.
		System.out.println(nike);
		nike.walk(20000);
		System.out.println(nike);
		
		// Same for Reebok.
		System.out.println(reebok);
		reebok.run(12345);
		System.out.println(reebok);
		
		// Let's walk 200 times!
		Random rndObj = new Random();
		for (int i=0; i<200; i++) {
			
			// Pick a random shoe and mode, and steps to walk.
			int rndShoe = rndObj.nextInt(2);
			int mode = rndObj.nextInt(2);
			int units = rndObj.nextInt(100000)+20000;
			
			// Nike
			if (rndShoe == 0) {
				
				if (mode == 0) {
					int actual = nike.walk(units);
					System.out.println("walked "+actual+" "+nike);
				}
				else {
					int actual = nike.run(units);
					System.out.println("run "+actual+" "+nike);
				}
				
			}
			
			// Reebok.
			else {

				if (mode == 0) {
					int actual = reebok.walk(units);
					System.out.println("walked "+actual+" "+reebok);
				}
				else {
					int actual = reebok.run(units);
					System.out.println("run "+actual+" "+reebok);
				}
			}
			
		}
	}
}