A Java-based tic-tac-toe game is what I am working on. Two players can take turns playing this console-based game on a 3x3 board until one player prevails or the game concludes in a draw.
The players, the game board, and the game logic are all divided into independent classes that were created using object-oriented programming techniques. I utilized inheritance to combine the two player classes into a single parent class that has a number of shared methods and attributes.
To guarantee that players may only submit legitimate moves on the board, the game also includes error management and input validation. The program also checks for win conditions after each move and displays the winner or a draw message at the end of the game.
My project showcases my proficiency in core Java concepts such as classes, objects, inheritance, encapsulation, and exception handling. I believe that this simple yet classic game demonstrates the power and versatility of object-oriented programming in developing practical and entertaining applications.
I hope that my Tic-Tac-Toe game can provide a fun and challenging experience for anyone who wants to play a quick game of strategy and reflexes. Thank you for considering my project for the hackathon.
Built With
- java
- javaswing
Log in or sign up for Devpost to join the conversation.