I am trying to figure out exactly what is wrong with my winorTie method in this little tictacttoe game I am trying to create. Would anyone be able to help? Thanks package tictactoegame; /** * * @author Douglas Boulden */ public class tictactoegame { static int [][] gameboard; static final int EMPTY = 0; static final int NOUGHT = -1; static final int CROSS = 1; static void set (int val, int row) throws IllegalArgumentException { int col = 0; if (gameboard[row][col] == EMPTY) gameboard[row][col] = val; else throw new IllegalArgumentException("Player already there!"); } static void displayBoard () { for (int[] gameboard1 : gameboard) { System.out.print("|"); for (int c = 0; c Solved Some of this was mentioned in the comments, but these conditions fundamentally don't make sense: if (gameboard [0][0] == NOUGHT && gameboard [0][...
I have the following chart which is displaying some values. I would like to hide/ remove values on the right side, because on the left side are enough. See image below: And code is following: public class MainActivity extends AppCompatActivity implements OnChartValueSelectedListener{ private LineChart mDataLineChart; private RelativeLayout mRelativeLayout; private LineChart mChart; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.activity_linechart); // Set chart setChart(); // add data setData2(3, 155); // ANIMATE CHART animateChart(); } private void setChart() { mChart = (LineChart) findViewById(R.id.chart1); mChart.setOnChartValueSelectedListener(...