Hi guys!
I just made a game of chess!Even though it won't show you a chessboard.Follow me!I'm working on another project
Use try in case the player enters something illegal. Also please add stalemate.
try
@YuAndy . I don't know where to put the try
@ready12345So for example if the function this() shows an error sometimes, you can do:
this()
try: this() except: that()
This will run this() and then if this() raises an error, run that().
that()
@YuAndy I do not get what are saying
Hi guys!
I just made a game of chess!
Even though it won't show you a chessboard.
Follow me!
I'm working on another project
Use
try
in case the player enters something illegal. Also please add stalemate.@YuAndy![]()

. I don't know where to put the try
@ready12345
So for example if the function
this()
shows an error sometimes, you can do:This will run
this()
and then ifthis()
raises an error, runthat()
.@YuAndy I do not get what are saying