Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
TicTacToe
SUBMITTED BY:
Rishi556
DATE:
Feb. 20, 2016, 2:36 a.m.
FORMAT:
Objective-C
SIZE:
466 Bytes
Raw
Download
Tweet
HITS:
985
Go to comments
Report
-
(
IBAction
)
c1Button
:
(
id
)
sender
{
if
((
status
.
text
=
@"X goes now"
))
{
c1
.
text
=
@"X"
;
if
([
c1
.
text
isEqualToString
:
@"X"
])
{
status
.
text
=
@"O goes now"
;
}
else
{
status
.
text
=
@"X goes now"
;
}
}
else
if
((
status
.
text
=
@"O goes now"
))
{
c1
.
text
=
@"O"
;
if
((
c1
.
text
=
@"O"
))
{
status
.
text
=
@"X goes now"
;
}
else
{
status
.
text
=
@"O goes now"
;
}
}
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus