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 |
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
def buildUrl = System.getenv().BUILD_URL | |
if (buildUrl != null) { | |
def auth = "<USER>:<APITOKEN>".getBytes().encodeBase64().toString() | |
def url = new URL("$buildUrl/api/xml?depth=20").openConnection() | |
url.setRequestProperty("Authorization", "Basic " + auth) | |
String data = url.getInputStream().text | |
def changelog = "" |