This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |