---
title: "Discussion on \"Unbeatable Tic-Tac-Toe AI: 7 Rules in Java\" | Hashnode"
description: "Discussion on \"Unbeatable Tic-Tac-Toe AI: 7 Rules in Java\". My first bot picked squares at random. I beat it in 3 moves.\nI'm working through LLD problems, and tic-tac-toe was the third one I picked. Building it for two players was the easy part. Then I added a"
url: "https://hashnode.com/posts/unbeatable-tic-tac-toe-ai-7-rules-in-java/6afc24c5346a2841935e2d07"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Unbeatable Tic-Tac-Toe AI: 7 Rules in Java](https://hiteshpatel.hashnode.dev/unbeatable-tic-tac-toe-ai-7-rules-in-java?utm_source=hashnode&utm_medium=feed)

My first bot picked squares at random. I beat it in 3 moves. I'm working through LLD problems, and tic-tac-toe was the third one I picked. Building it for two players was the easy part. Then I added a

21h ago · 10 min read · hiteshpatel.hashnode.dev  
Read the article

-   [#architecture](https://hashnode.com/tag/architecture)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#system-design](https://hashnode.com/tag/system-design)
-   [#java](https://hashnode.com/tag/java)

## Written by

[Hitesh Patel](https://hashnode.com/@hiteshpatel10)

@hiteshpatel10

  
[View profile](https://hashnode.com/@hiteshpatel10)

Build. Learn. Simplify

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
