Skip to content

Conversation

@Mishu03
Copy link

@Mishu03 Mishu03 commented Oct 17, 2025

✨ Add Java Game: Tic-Tac-Toe

Summary

This PR adds a beginner-friendly Tic-Tac-Toe console game in Java for two players.
Players take turns marking the board until one wins or the game ends in a tie.

Features:

  • Console-based 3x3 Tic-Tac-Toe
  • Input validation to prevent overwriting moves
  • Win detection for rows, columns, and diagonals
  • Alternates between two players automatically

✅ Checklist

  • Program compiles and runs correctly
  • Code is clean and well-commented
  • Added to appropriate folder (Projects/1-Beginner/)
  • Follows repository style conventions
  • Beginner-friendly and educational

📚 Concepts Demonstrated

  • 2D arrays
  • Loops and conditionals
  • Input handling with Scanner
  • Basic algorithmic thinking for game logic

Thank you for reviewing this contribution! 🙌

@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 0% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.73%. Comparing base (4858ec9) to head (bd48516).

Files with missing lines Patch % Lines
...a/com/thealgorithms/puzzlesandgames/TicTacToe.java 0.00% 35 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6821      +/-   ##
============================================
- Coverage     77.85%   77.73%   -0.12%     
  Complexity     6359     6359              
============================================
  Files           731      732       +1     
  Lines         21187    21222      +35     
  Branches       4140     4148       +8     
============================================
+ Hits          16495    16497       +2     
- Misses         4034     4068      +34     
+ Partials        658      657       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Mishu03 Mishu03 closed this Oct 17, 2025
@Mishu03 Mishu03 reopened this Oct 17, 2025
@Mishu03 Mishu03 closed this Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants