Tic Tac Toe Game Swift Xcode Tutorial | Noughts & Crosses

preview_player
Показать описание
How to build a tic-tac-toe game using Swift and Xcode. In this beginner iOS development tutorial we build a simple game of noughts and crosses or tic tac toe. A fantastic beginner programming project.

Build this simple yet fun game in less than 10 minutes. With this example project improve your understanding of Stack views, enums, UIButtons and much more.

This iOS games app tutorial is built using Storyboard, UIKit.

Tic Tac Toe Source Code:

⏱️ TIMESTAMPS ⏱️
00:00 - Intro Tic Tac Toe
00:32 - Storyboard Tic Tac Toe Board
03:08 - Place Symbol
04:56 - Reset Draw
07:19 - Victory

#iOSGameDevelopment #SwiftXcode #AppDevelopment
Рекомендации по теме
Комментарии
Автор

It would be much easier to follow if you could just slow down. Looks like a racing tutorial lol

mikes
Автор

I tried to repeat this project 3x to successfully make the storyboard interface. I hope when you're editing things on Storyboard, such as aspect ratio, equal widths, and others, you might be able to quickly discuss them so we won't search for it anymore and this would be a complete project tutorial. BTW, I appreciate the effort and thank you so much! hope you make more contents <3

elvinrossfabella
Автор

If this tutorial is for beginners, it would be nice to slow it down while reviewing your project. Some essential people like to see this in slow-motion!!!

mohsenjoonam
Автор

FIX FOR THE RESET NOT WORKING: CHANGE THE STYLE OF THE BUTTON TO "Default"

xtrajazz
Автор

As a 7+ Software Engineer that works for web, I am finally IOS development.
Thanks for this amazing playlist!

goldenglowitsolutions
Автор

another place to check if your reset is not working, make sure you're calling your initBoard() function in your override func viewDidLoad() function (glossed over at 5:00)

samtibbitts
Автор

9 minutes video, excellent, Me trying to code along took me 1 hour just to get to the 3rd minute, Cal is so superfast, blink and he has add a horizontal stack, vertical stack, a button
duplicated the button twice, gone back to delete the button title in like 6 seconds and i have to play pause, play pause, play pause, hold up, something is not looking right
rewind, play pause shimmy all over again before catching a casual change done in a split second.
This video is a quick overview, excellent overview. Dont call it a tutorial. Just kidding


It is too fast with little check points for anyone that wants to code a long. But still. Thank you Cal

elmalleable
Автор

Thank you for your effort. But you explain very quickly and without giving details. Simple projects are generally of interest to new learners. Most subjects are not understood when told quickly. Anyway, thank you for this content.

halukbayrakc
Автор

I'm a beginner who made an app project, tic tac toe exactly an interesting idea for the almost beginner. Thanks for making and sharing it <3

kokb
Автор

Btw if anyone is having trouble after the reset with the buttons not going clear but remaining, go to Main/StoryBoard and for the button click on "Style" and choose "default" as opposed to "plain".

workoutrex
Автор

@1:07 where you changed the aspect ratio I dont see that option. any ideas?

bathsaltZ
Автор

if you simply create a function to check three conditions are true you can simply put all the buttons into a multidimensional array and send each group through the function. it would store the button pointers in malloc and be faster than running 9 if statements. also it would be good to not run the check for victory before 4 turns because a victory is not yet possible

fsecofficial
Автор

Using Xcode 13.4.1, if I right-click on the VStack there is no "Aspect Ratio" option.

However, if I hold Control and then click and drag from the inside of the VStack outward (with the glowing blue line it almost seems like I'm summoning the context menu), then I do see "Aspect Ratio" as well the centering options.

bilal-kwwo
Автор

I've just started learning iOS dev and this was great to watch. Thanks for making this

Shafique
Автор

I'm at 4:43 trying to build and run the project but continue to get an error because there is no sender being identified, in quote, "Missing argument label 'sender:' in call". any help?

emorejterrell
Автор

When i remove the "X" in title of the button ( @ 1:50 ) it clears the font settings, making the "X" and "O" back to the small size when i run the game.

mrjyym
Автор

I am getting an error while running it says cannot find turn lable in scope

chaitanyachaitu
Автор

It would be better if you explain which platform are you using and how does it work for beginners

harukalove
Автор

I have to put your videos in .25 speed. Lol

korragnarok
Автор

0:59 I already can't follow, how the heck do I do aspect ratio? Well, someone said to hold control and click and drag, how the heck am i supposed to know that?

xthomas