All Questions
16 questions
2
votes
1
answer
9k
views
Tic Tac Toe game - object oriented Java
I've written my first project which is Tic Tac Toe. Everything is working correctly. I'm here to get some advice about my code. I want to be this code as much object oriented as it can be. I divided ...
7
votes
3
answers
4k
views
Tic Tac Toe in Java: Runner Class Design, Using Helper Methods, and Instance Variables
Background: As a fun exercise to work on my grasp of the OOP paradigm (my experience learning programming the past 2+ years has focused mainly on C), I wrote a basic implementation of Tic Tac Toe in ...
4
votes
4
answers
724
views
Tic Tac Toe with SOLID principles
I am making a Tic Tac Toe game to be played in the console either against another human or a simple AI. It is a little rough but it works. What concerns me is how well it adheres to SOLID and other ...
5
votes
1
answer
850
views
Object Oriented TicTacToe
I have been trying to learn to program in a more object oriented manner and I am at the moment working on a Tic Tac Toe game. I have tried to split my classes so that it would make sense, OOP wise. I ...
3
votes
1
answer
881
views
Java - Tic Tac Toe
I am a self - taught coder, and have been learning Java for the last 2 years.
I have recently created a tic tac toe game in Java. I have rearranged the program into separate classes & methods. I ...
1
vote
1
answer
1k
views
Winning logic for Tic Tac Toe and OO design
I'm a Java beginner and I've just started learning about GUI. However, I'm not sure about GUI coding conventions and whether I'm getting the object orientation part of it right. I feel like I'm ...
2
votes
1
answer
2k
views
Human-vs-computer X and O's game
Anyone have any tips on how to divide my code up into classes? This seems to work from me but would prefer to have it divided up into one or two separate classes if possible.
...
5
votes
3
answers
946
views
Tic-Tac-Toe classes according to SOLID principles
I have these classes for my Tic-Tac-Toe game project. I am very new to object oriented analysis and design. Can anyone help determine if SOLID principles are preserved in this code or if it is ...
14
votes
1
answer
2k
views
Three in a row: Tic, Tac, Toe
The other day, I started thinking of a new personal project to start that I wanted to do in Java. As I started to do it, I realized that I was constantly deleting classes, creating new ones, merging ...
11
votes
2
answers
297
views
Tic Tac T-OO: Design and Implementation
I want to learn OO design and as a start, I implemented Tic Tac Toe. I'd like to hear your thoughts on the design and implementation.
Classes:
Player - Has just a ...
12
votes
2
answers
4k
views
Ultimate Tic Tac Toe A.K.A. Tic Tactics
My attempt at this challenge., incorporating lessons from this question, which turned out into a much bigger project than I anticipated, but it works. I'll definitely be refactoring most of this in ...
2
votes
2
answers
517
views
TicTacToe in OOP
I'm trying to learn some OOP programming using Java, so I've created TicTacToe. Could you give me some advice on how I can improve this code?
Player.java:
...
5
votes
3
answers
2k
views
Does this Tic-Tac-Toe game follow abstraction and encapsulation?
This below program will be further enhanced for TicTacToe game with Human and Computer as players.
Currently this program is written for choosing best move for a ...
15
votes
5
answers
19k
views
Tic Tac Toe game in Java OOP
I have written a simple GUI Tic Tac Toe Application and since this is my first shot, I think it can be improved a lot.
Please tell me what you think about it and what you see I made wrong so I can ...
7
votes
4
answers
3k
views
Tic-Tac-Toe design
Kindly look at this code and point out design flaws or areas for improvement. I think I've done the last part right (the enum). I think the rest of the design is flawed but I am very new to object-...