It seems like my java code is stuck in a loop somewhere -
import java.util.random; import java.lang.math; import java.lang.string; public class gameofnim { private int min,max; private int turn; private int firstturn; private int stupid; private int smart; private int computer; private int user; private int first; private int pile; public gameofnim(int min, int max ){ pile=(int)(math.random()*max+min); smart=(int)(math.random()*100); stupid=(int)(math.random()*100); system.out.println("pile size "+pile); firstturn=(int)(math.random()*100 + 1); computer=0; user=1; if(firstturn>50) { firstturn=user; } else { firstturn=computer; } firstturn=turn; } public void play() { if(smart>50) { system.out.println("computer playing smart"); } else { system.out.println("computer playing stupid"); } if(firstturn==user) { ...