Skip to content

Instantly share code, notes, and snippets.

import java.util.Scanner;
import java.util.Random;
public class Hw4 {
public static final int BOARD_SIZE = 10;
enum space {Empty,Player,Walked_Path,Goal,Mines};//eumeration creates a type
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
Random r = new Random();
int pX = 0;//players x and y