Skip to content

Instantly share code, notes, and snippets.

View Andrewcpu's full-sized avatar
👁️‍🗨️

Andrew Stein Andrewcpu

👁️‍🗨️
  • Andrewcpu
  • Philadelphia
  • 03:58 (UTC -04:00)
View GitHub Profile
package io.minelights;
import io.minelights.lights.ColorMode;
import io.minelights.lights.LightEvent;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufUtil;
import net.minecraft.server.v1_12_R1.NBTCompressedStreamTools;
import net.minecraft.server.v1_12_R1.NBTTagCompound;
import net.minecraft.server.v1_12_R1.PacketDataSerializer;
import org.bukkit.Bukkit;
import lights.LightType;
import lights.WemoSocket;
import management.Group;
import java.awt.*;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import javax.net.ssl.HttpsURLConnection;
import java.io.*;
import java.net.*;
public class Main {
public static void main(String args[]) throws Exception {
/* create byte arrays to hold our send and response data */
import java.awt.*;
public class GeneticPlayer {
public static Point startPoint = new Point(0,0);
private double fitness = 0;
//target fitness = 1