Skip to content

Instantly share code, notes, and snippets.

View salixh5's full-sized avatar
🦑
タコパ

Noa salixh5

🦑
タコパ
View GitHub Profile
@salixh5
salixh5 / 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;