john quick

Ranch Hand
+ Follow
since Jan 23, 2017
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
11
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by john quick

I'd rather go with option 2 and not the one the instructor sent me.
2 years ago
Okay, my instructor responded and said either way is acceptable for the Tic Tac Toe program.
2 years ago
I will ask my instructor tomorrow.  They do not respond on the weekends.
2 years ago
The problem has to do with the assignment and my instructor(s).

I know you guys have said the whole thing is sloppy looking and terrible, I realize that.  BUT...it is what I have been given and what I have to use.  No variation here is allowed. As for what is in the output when I run the project..  What I posted earlier is what my instructor WANTS to see in the output.  I'm not getting that in the output...

I sent my current code to my instructor(s).  I asked what is still wrong with for it not to show what THEY want it to show in the output.  

He replies...

Your program does not run properly because of the last few lines of code in your winOrTie( ) method:





Your program will return TIE no matter what the user enters into the cell for the first time because turn is always set to 9 so return -2 is never called.



I respond asking him to confirm that I need TIE, he replies...

You do need to have TIE in your code.  -2 should be returned if the winner is not CROSS, NOUGHT, or TIE.



Here is the only hint that I can provide you:





As for the alignment of the code, again it is in the instructions.  It looks just like that!  My instructor sends me the above with the code looking just like that!
2 years ago
my instructor says this is the only hint he can give me....





2 years ago
-2 represents empty cells on the board.
2 years ago



This is where I am currently at.  According to my instructor the problem lies in the code above.  I honestly am not sure exactly what to put in to correct the issue.  TIE needs to be in the code, so that stays.  Since my instructor says -2 should be returned if the winner is not NOUGHT, CROSS, or TIE, I feel -2 should not be in the code but I am 100% sure.  Honestly I'm burned out on this project.
2 years ago
My instructor replied and stated I do need TIE.  -2 should be returned if the winner is not NOUGHT, CROSS, or TIE
2 years ago
He is saying that because Turn is set to 9 the program will return TIE no matter what.  So basically no need to have tie in the code. -2 is never called and I need to make sure it is.
2 years ago
That's the issue, the printed assignment shows the out put looking like that.

Anyways I was chatting with my instructor.  He said the following...

Your program does not run properly because of the last few lines of code in your winOrTie( ) method:

i

Your program will return TIE no matter what the user enters into the cell for the first time because turn is always set to 9 so return -2 is never called.




2 years ago
My apology..

This is what I am getting in the output...







This is what is supposed to be in the output...







2 years ago
The only problem I am having now is when I compile I still get the following in the output...

| | | |
------

| | | |
------

| | | |
------


-0's turn-
Enter row and Column:




I am supposed to have this in the output...


||||
-------
||||
-------
||||
-------
--O’s turn--
|O| | |
-------
||||
-------
||||
-------
--X’s turn--
|O|X| |
------- |||| ------- |||| -------

--O’s turn--
|O|X| |
-------
| |O| |
-------
||||
-------
--X’s turn--
|O|X| |
-------
| |O| |
-------
|X| | |
______
—O’s turn—
|O|X| |
-------
| |O| |
-------
|X| |O|
O wins!

I had to declare the variable 'turn' because it isn't declared in my code.  Same with TIE.
2 years ago
I know there is no for loop but here is an updated version...


2 years ago
Woops!  Had a plus sign in their by mistake.
2 years ago
Hi, yes I realize I have to insert two more values.  You are referring to a for loop correct?  I have until February 2018 to finish this semester, (it's an online college).  I can also ask for an extension if need be.  This college I am attending is a go at your own pace type.  Of course I am way behind.  If I can get past this particular assignment I can catch up.
2 years ago