I am almost done with my first sem of comp. sci. I'm in high school so we havn't done anything really complicated, well everything was complicated for me; I just didn't seem to get it.
For the final exam we have to make a program of our choice and have him approve of it.
I'm going to make a very simple tic tac toe game.
The board will look like this.
7 | 8 | 9
-----------
4 | 5 | 6
-----------
1 | 2 | 3
I want to ask the user whether or not s/he wants to play.
I am having problems with doing that, as well as figuring out how to replace the numbers with an X or O and printing it out every time; and then declaring a winner whenever they get three in a row.
The code can't be too long cause I have to retype it during my exam time.
I want it to be player vs player since I heard that it is easier.
I am really lost guys would someone be able to help me out?
Do I use boolean? How do I use boolean?
Do I use str.replace? How do I use it?
For the final exam we have to make a program of our choice and have him approve of it.
I'm going to make a very simple tic tac toe game.
The board will look like this.
7 | 8 | 9
-----------
4 | 5 | 6
-----------
1 | 2 | 3
I want to ask the user whether or not s/he wants to play.
I am having problems with doing that, as well as figuring out how to replace the numbers with an X or O and printing it out every time; and then declaring a winner whenever they get three in a row.
The code can't be too long cause I have to retype it during my exam time.
I want it to be player vs player since I heard that it is easier.
I am really lost guys would someone be able to help me out?
Do I use boolean? How do I use boolean?
Do I use str.replace? How do I use it?