SOS Oyunu
The first application I built in Java. Two players take turns placing an S or an O on a 3x3 board; whoever completes an SOS sequence scores a point, and once the board is full the winner is decided on total score.
- Year
- 2026
- Category
- Desktop Game
- Tech stack
- Java · Swing · OOP

Overview
After learning the basics of Java I wanted to build something I could finish on my own. I picked SOS because the rules are simple enough for anyone to follow, yet there is real logic behind it: tracking turns, the state of the board and the scores.
I built the interface with Swing. The nine cells on the board are clickable buttons; a player first chooses which letter to place from the panel below, then clicks a cell. Whose turn it is, the selected letter and both players' scores stay visible and up to date on screen.
The most instructive part was the win check: after each letter is placed, the board has to be scanned horizontally, vertically and diagonally to see whether a new SOS has been formed. Writing it taught me how to work with arrays and how to keep the program's state separate from the interface — a habit that has stayed with me in later projects.
Highlights
- 01Turn-based two-player game on a 3x3 board
- 02Choice between placing an S or an O on every move
- 03Automatic scoring with horizontal, vertical and diagonal SOS detection
- 04Swing interface showing the turn, selected letter and live scores