Skip to content

Instantly share code, notes, and snippets.

View jakob11git's full-sized avatar
🍊
Fruit cocktail

Jakob Yanagibashi jakob11git

🍊
Fruit cocktail
View GitHub Profile

aspe:keyoxide.org:YIXSBQF47CWP2XTVU4XQKO3HFA

@jakob11git
jakob11git / Spaceship.java
Last active December 10, 2015 23:59
very simple spaceship simulator
public class Spaceship {
public int people = 10; // the amount of people living on the ship
public int food = 100; // the amount of food the people can use for surviving
public int fuel = 100; // how much fuel is left for flying
public double[] cord = new double[2]; // coordinates of the ship - X,Y
public double[] course = new double[2]; // coordinates of the flying target - X,Y
public static void main(String[] args) {
Spaceship traumschiffSurprise = new Spaceship(5.0, 4.0, 9.0, 9.0);
int i = 1;