Member-only story

Toe Part II: Update Logic SwiftUI Game Use AI Grok

Jerry PM
6 min read2 days ago

This will be human VS AI 🤖

So, this is an update on the progress of the game I started a few days ago. This time, I’ve added logic for a Human vs. AI mode in my Tic-Tac-Toe game.

Previously, I created a Player vs. Player mode, but now I’ve made it more interesting by adding an AI opponent.

Here’s my previous article, where I discussed the first progress of creating the game using TRAE with SwiftUI.

This time, I am using Grok to update the previous code because Grok is now free. In my opinion, Grok’s logic is much better compared to the free version of ChatGPT.

Continuation of my previous code for Human vs AI. The logic I asked Grok about is not yet completely good and still has some issues, but overall, the logic is good.

In my opinion, Grok’s logic is much better compared to ChatGPT’s free version.

--

--

No responses yet