This is a simple TicTacToe game implemented in Java using the Vaadin framework.
Game.java**: Contains the main logic and UI components for the TicTacToe game.
To run the TicTacToe game:
- Ensure you have Java and Maven installed.
- Clone or download this repository.
- Open the project in your preferred Java IDE.
- Run the
Game
class.
- The game is played on a 3x3 grid.
- Player X always goes first and Player O follows.
- If all cells are filled and no player has three marks in a row, the game is a draw.
- Click on an empty cell to place your marker (X or O).
- The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
![interface](https://private-user-images.githubusercontent.com/96013656/270643872-e1a0dda5-736d-4640-98fb-b7e63883d4bb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ5NzUxMTAsIm5iZiI6MTcyNDk3NDgxMCwicGF0aCI6Ii85NjAxMzY1Ni8yNzA2NDM4NzItZTFhMGRkYTUtNzM2ZC00NjQwLTk4ZmItYjdlNjM4ODNkNGJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI5VDIzNDAxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxZTI1MjE5ZjgwNDk4MTg4ZWYwOGU3NmRhNmNlZDFlNTQ2MTg5MDQwMWE5MDU3NmIyYWUyZGM2ZjY5ODJkMDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XrMcAhZY6XUrhctyJqYZv_REYB1ePUG4SjGffVk9U0w)
Enjoy the game!