#๐Ÿ”’ How make tictactoe

51 messages ยท Page 1 of 1 (latest)

unkempt swallow
#

:?

tight perchBOT
#

@unkempt swallow

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

unkempt swallow
#

Via pydroid

#

Cuz i aint got a better engine/know any for mobile

#

@rancid grove :?

rancid grove
#

ur only option is to use input and print

unkempt swallow
#

Ok

#

But the gribd

#

With lidt

#

List

#

And function

rancid grove
#

and a lot more options but those the 3 usual solutions

unkempt swallow
#
 x | x | x
โ”€โ”€โ”€+โ”€โ”€โ”€+โ”€โ”€โ”€
 x | x | x
โ”€โ”€โ”€+โ”€โ”€โ”€+โ”€โ”€โ”€
 x | x | x
#
print(" {} | {} | {} ".format(" ", "x", "o"))
unkempt swallow
rancid grove
unkempt swallow
#

Dors it just rrplace the {} with that format?

#

Ok

#

So

rancid grove
#

!e

print(" {1} | {0} | {2} ".format(" ", "x", "o"))
tight perchBOT
rancid grove
#

u can also specific where stuff lands

#

the 0th aka empty string now goes on middle, the next which is x goes on the left and the last o goes on right

#

because of the 0 1 2

unkempt swallow
#

!e
print(" {} , {} , {} ".format("b", "a", "n"))

tight perchBOT
unkempt swallow
#

Alr

#

Makes sense now

#

!e
print(" {} {} {} {} {} ".format("a", "b"))

tight perchBOT
# unkempt swallow !e ```print(" {} {} {} {} {} ".format("a", "b"))```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     print(" {} {} {} {} {} ".format("a", "b"))
004 |           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
005 | IndexError: Replacement index 2 out of range for positional args tuple
unkempt swallow
#

What

rancid grove
#

5 formatting slots but only 2 elements given for format

unkempt swallow
#

Oh

#

Ok so

#

Could i theroetically

#

Create a format grind filled with variables and use number fir the varibles to declare them as x o or empty?

shrewd ravine
#

hey ๐Ÿ‘‹

unkempt swallow
#

Hey

#

Im gonna be at schol soon

#

So ill be back in 7hrs

#

And makes this again

#

Cya

#

Bye dagger

rancid grove
#

cya

shrewd ravine
#

ok

rancid grove
shrewd ravine
#

!close

#

lol

tight perchBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.