How to Program Tic-Tac-Toe in 15 minutes. (SwiftUI | Xcode)

  Рет қаралды 11,923

Jared Davidson

Jared Davidson

3 жыл бұрын

We set out on a perilous journey. One involving simple mathematics, the Swift programming language, and MUCH more... In today's episode of how to make something in a certain amount of time, we build the game that has stood the test of time... Tic-Tac-Toe. Will you make it out alive?!?!
Send results to me on Twitter! - @archetapp
Source Code - github.com/Archetapp/TickityT...
Music by Vexento
Jarvis Desk - goo.gl/JbVrWF
Fully Lumen Lamp - goo.gl/ndZUKD
Topo Anti-Fatigue Mat - goo.gl/sZ2n52
~Social Stuff~
Website - www.archet.app
Twitter/Instagram - @archetapp

Пікірлер: 30
@Archetapp
@Archetapp 3 жыл бұрын
Hey guys! Sorry for the long break. Can't promise there won't be a long break before the next video either, been really busy with a new job... but how did you like this format of video?! Was it easy to follow? Do I need to say all the syntax stuff, or is it easy enough to just say what we're doing vs what we're typing?
@jessicaoreilly9260
@jessicaoreilly9260 3 жыл бұрын
So glad you are back. I like the format of the video.
@JellyLancelot
@JellyLancelot 3 жыл бұрын
Cool! Welcome back 😄
@Archetapp
@Archetapp 3 жыл бұрын
Thanks!!!
@jasonblum340
@jasonblum340 8 ай бұрын
Great video and super easy to follow along! I know this is an older video, but I was wondering if you had any update videos on how to add score tracking to this? Thank you!
@Willykamus
@Willykamus 3 жыл бұрын
Hey! Just one small question... Why do you set your Square class as @ObservableObject... it is not enough with just the array of Square in the TicTacToeModel? Thanks
@Krunkway
@Krunkway 3 жыл бұрын
Loved the video! I have a cool idea for your memestagram app, so the idea is that an admin can make a persons account verified and if a user wants they can make their account subscription-based (the app gets an 18% cut out of every subscription account) and lastly the user can go LIVE and people can watch. ♥️
@Away88123
@Away88123 3 жыл бұрын
Nice you are grate. More videos !
@TechRagh
@TechRagh 3 жыл бұрын
Thank you 🙏🏻
@Archetapp
@Archetapp 3 жыл бұрын
Thank you for watching. :]
@lwuquh6732
@lwuquh6732 2 жыл бұрын
does anyone know how to insert an arrow? I am trying to give action type void and using ->, and I am getting the error "Cannot convert value of type 'Void.Type' to specified type '()'"
@lincolndickerson1293
@lincolndickerson1293 Жыл бұрын
Just use a dash (-) next to a greater than (>) to get ->
@davitorquett
@davitorquett 3 жыл бұрын
You are só inteligente my big friend
@KnightsHype
@KnightsHype 3 жыл бұрын
what type of mac do you use? I'm a student and only have a base model 2019 mac book air and am ready to upgrade
@smael1989
@smael1989 3 жыл бұрын
this is not bad at all for a student ) I was learning on mac pro 13 late 2014. You should buy m1, no need to buy any old versions now
@davitorquett
@davitorquett 3 жыл бұрын
Jared sets the option for your videos to be subtitled into Portuguese too
@RajiveJain2014
@RajiveJain2014 2 жыл бұрын
Thanks for the tute. I'd like to point out one annoyance. Switching constantly between the presenter & code in XCode keeps breaking the cognitive attention of folks for no practical reason whatsoever. If one is reading the code (even if typing along), it helps to stay in there & reason it out instead of being yanked constantly out of XCode to the viewer. Could you please incorporate this change in subsequent tutes - users can hear the explanations without having their focus in the lines of code being suddenly disrupted Thanks for the efforts though. One slight mistake - it's called a ternary operator, not a tuple (at 3:56)
@best10gunay34
@best10gunay34 2 жыл бұрын
how can i write 4 ( for instance x-x-x-x o-o-o-o)
@kushklimatik
@kushklimatik 3 жыл бұрын
Did you just refer to a conditional expression as being a tuple lol?
@amphortas1
@amphortas1 2 жыл бұрын
I have 8 errors in private var thereIsAWinner: SquareStatus { if let check = ... Initializer for conditional binding must have Optional type, not 'SquareStatus'
@amphortas1
@amphortas1 2 жыл бұрын
Please ignore my previous question, it was my mistake - I was missing ? sign in checkIndexes(_ indexes: [Int]) -> SquareStatus?
@davitorquett
@davitorquett 3 жыл бұрын
Jared do you use telegram?
@sangharramesh
@sangharramesh 2 жыл бұрын
for the newbie it was very difficult to understand
@lincolndickerson1293
@lincolndickerson1293 Жыл бұрын
There are quite a few complexities in tic-tac-toe and I believe Jared has boiled them down into a simple pieces. Best to take this one slow, maybe even slow the video down and understand each step before moving forward.
@devlopmentsupport9244
@devlopmentsupport9244 3 жыл бұрын
ala bov jadio thai gayo chhe ne yarr
@omick16
@omick16 3 жыл бұрын
it's not a tuple, it's a ternary operator
@Archetapp
@Archetapp 3 жыл бұрын
Whoops, how did I not catch that. 😬
@lincolndickerson1293
@lincolndickerson1293 Жыл бұрын
@@Archetapp happens to the best of us. 😅
@mrpp01
@mrpp01 3 жыл бұрын
I notice you have gained some weight. Hope everything is fine with you. Cheers!
@Archetapp
@Archetapp 3 жыл бұрын
All is fine. Thanks for the concern though. 🤙
How to code in Swift | Swift Basics #1
18:25
Swiftful Thinking
Рет қаралды 41 М.
How To Create A Tic Tac Toe Game in Xcode 15 (SwiftUI) - Part 1
16:13
The Swift Guy
Рет қаралды 1,6 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 23 МЛН
Getting started with Combine + UIKit in Swift
23:45
Swift Arcade
Рет қаралды 18 М.
UIKit vs SwiftUI!
7:54
Jared Davidson
Рет қаралды 4,4 М.
Making a Tic Tac Toe Game - Introduction and Setup (Lesson 1-2)
26:09
How to Make an Animated Underline Tab Bar! (SwiftUI)
15:33
Jared Davidson
Рет қаралды 13 М.
How to Get User Location on a Map - Swift
26:11
Sean Allen
Рет қаралды 62 М.