I'm not exactly sure why the instructor had us use "markTheBoard(Marker m, int pos)". I don't know what to do with 2 parameters, but he specifically said we cannot change it. I don't know what the...
Type: Posts; User: CaliRocks
I'm not exactly sure why the instructor had us use "markTheBoard(Marker m, int pos)". I don't know what to do with 2 parameters, but he specifically said we cannot change it. I don't know what the...
Oh cool! Thank you. Here's the paste:
C:\Users\Thao\Java\jdk1.7.0_40\bin>javac TicTacToe.java
TicTacToe.java:57: error: ')' expected
markTheBoard(Marker m, int...
I don't use an IDE. The instructor said to not use an IDE, just use Notepad++ and "cmd". I'll attach the error images again here. I had to use Paint to take the screen pics:
2447
2448
2449...
Here's what I have again:
import java.util.*;
public class TicTacToe
{
public enum Marker
{
EMPTY,
X,
I don't know how to upload the error screen. So I just used Paint to take screen pics and attaching it to this thread:
2443244424452446
I added brackets in and still received the same errors.
some of the errors are:
error: illegal start of expression
markTheBoard(Marker m, int pos);
error: not a statement
...
It's an assignment. The point is to see if we can construct a TicTacToe game without using arrays. Here's what I have so far, but I keep getting errors:
import java.util.*;
public class...
Can anyone help me construct a Java program that plays TicTacToe without using Arrays?
Here's what I have so far:
import java.util.*;
/**
* Represents a tic tac toe board on the console, positions are shown below:
* -------------
* | 1 | 2 | 3 |
* -------------
* | 4 |...
I have to create a TicTacToe game that accepts user input of positions 1 - 9. I started with a few functions but then now I'm totally lost with taking into considerations all the possible...