I am fresh-new to OOP and Java. I had some brief experience in procedural languages like C.
Straight after OO HelloWorld I have written this TicTacToe. What I am trying to say: I have no experience with object oriented paradigm, thus I don't know what kind of mistakes I make.
Would anyone be able to point out my mistakes? I mostly care about the OO mistakes, anti-patterns and such. Not necessarily the game logic itself.
Also added following code to gist
If anyone could point out the mistakes I've made from the object-oriented standpoint, I could appreciate it.
As I have no experience at all I couldn't reason whether X solution would be better than Y solution. I did whatever "felt right".
For example, Game
class is never instantiate and uses only static fields. I also feel like that class is bit too long.
I placed `makeMove()` function within `Game` class in order to avoid cyclic class dependency; I am not sure if that function should belong in there or not. Also, because Game
class never uses its constructor, I am creating other objects the Game
class needs by using initGame()
static function. I suppose I could as well do that in a constructor.
I am basically wondering what's wrong the most with my code.