public class MagicTable extends Object
Constructor and Description |
---|
MagicTable() |
Modifier and Type | Method and Description |
---|---|
void |
burnNumber(int nb) |
List<Integer> |
getAllFree() |
List<Integer> |
getAllUsed() |
static int[] |
getNeighboors(int nb) |
static int[] |
getNeighboorsSlow(int nb) |
int |
getRandomFree(Random rnd) |
boolean |
isUsuable(int nb) |
static void |
main(String[] args) |
static void |
main2(String[] args) |
static int |
size(Random rnd,
MagicTable mt) |
public static int[] getNeighboors(int nb)
public static int[] getNeighboorsSlow(int nb)
public boolean isUsuable(int nb)
public void burnNumber(int nb)
public int getRandomFree(Random rnd)
public static int size(Random rnd, MagicTable mt)
public static void main(String[] args)
public static void main2(String[] args)
Copyright © 2015. All Rights Reserved.