-Frinavale
I will check and I plan to make it a bit more aesthetically appealing before revealing it.Thanks for all the help.
Off topic:hmm.Consp iracy?Dont worry ,if there was a conspiracy, it didnt work.lol
User Profile
Collapse
-
-Frinavale
Thank you,thank you and thank you.
It turns out that was all I really needed.I truly appreciate your help.
On the topic of my avatar, its actually a My Chemical Romance avatar. Perhaps the owner of the site is a fan?
Many, many thanks-OedipusLeave a comment:
-
-Frinavale
I cannot recall exactly what it was as I tried it out a while ago . It was something like "Random cannot be applied to int". I think I may have also messed up in getting the current time.Leave a comment:
-
-Frinavale
Thank you once again for your insight.I have already initialised all the elements intthe array to 0.The problem I am currently experiencing is that I cannot find the right code/syntax to do what you have suggested.
The way I see it is as follows:
-In a do-while loop(is that the correct loop?)generate the random element.
-Then check whether the value of the random element is <1.
--If it is less than...Leave a comment:
-
Frinavle-
Thank you for your time , however I think that I may have left something to be desired in the phrasing of my question. What I actually wanted to know was how to get the program to stop overwriting blocks on the grid that already have a value.
The information that you gave me was extremely interesting and I have read up on it. I have no doubt that at some later juncture it will prove invaluable. I will be extremely grateful...Leave a comment:
-
Help needed WRT text based adaptation of the TicTacToe game.
I am currently learning java at school and thus far we have oly dealt with the text-based compiler JGrasp; therefore; my attempt to code Tictactoe or "X and O's" game is written as a text based program.
I have made use of a 2 dimensional integer array to represent the 3x3 grid. Each block therefore has a co-ordinate.eg. grid[0][0].Initially all blocks in the grid are equal to zero. The computer uses ones(1) and the player...
No activity results to display
Show More
Leave a comment: