remove unused instance member, random
parent
bb4ea267e4
commit
9ba1ce1956
|
@ -3,12 +3,10 @@ package magic.ai;
|
|||
import magic.model.MagicGame;
|
||||
import magic.model.MagicGameLog;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicRandom;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -63,7 +61,6 @@ public class VegasAI implements MagicAI {
|
|||
CHEAT,
|
||||
choiceGame,
|
||||
score,
|
||||
new Random(MagicRandom.nextRNGInt(1000000)),
|
||||
slice
|
||||
));
|
||||
}
|
||||
|
|
|
@ -3,8 +3,6 @@ package magic.ai;
|
|||
import magic.model.MagicGame;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class VegasWorker implements Runnable {
|
||||
|
||||
private static final int MAIN_PHASES=6;
|
||||
|
@ -12,16 +10,14 @@ public class VegasWorker implements Runnable {
|
|||
private final MagicGame sourceGame;
|
||||
private final VegasScore score;
|
||||
private final Object[] choiceResults;
|
||||
private final Random random;
|
||||
private final long slice;
|
||||
private final boolean CHEAT;
|
||||
|
||||
VegasWorker(final boolean cheat, final MagicGame sourceGame, final VegasScore score,final Random random,final long slice) {
|
||||
VegasWorker(final boolean cheat, final MagicGame sourceGame, final VegasScore score,final long slice) {
|
||||
this.CHEAT = cheat;
|
||||
this.sourceGame=sourceGame;
|
||||
this.score=score;
|
||||
this.choiceResults=score.getChoiceResults();
|
||||
this.random=random;
|
||||
this.slice=slice;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue