Skip to content

Commit 91376fc

Browse files
committed
Formatting
1 parent e233609 commit 91376fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jarviscli/plugins/chess.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44
from plugin import plugin
55
from stockfish import Stockfish
66

7+
78
@plugin('chess')
89
class Chess():
910
def __call__(self, jarvis, s):
1011
fish = Stockfish()
11-
while(True):
12+
while (True):
1213
jarvis.say("Choose your option:")
1314
jarvis.say("1. Moves")
1415
jarvis.say("2. FEN")
1516
option = jarvis.input("Choice: ")
16-
if(option == '1'):
17+
if (option == '1'):
1718
moves = jarvis.input("Moves: ")
1819
print(moves.split())
1920
fish.set_position(moves.split())
2021
jarvis.say(fish.get_best_move())
21-
elif(option == '2'):
22+
elif (option == '2'):
2223
fen = jarvis.input("FEN: ")
23-
if(fish.is_fen_valid(fen)):
24+
if (fish.is_fen_valid(fen)):
2425
fish.set_fen_position(fen)
2526
jarvis.say(fish.get_best_move())
2627
else:
2728
jarvis.say("Invalid option\n")
28-

0 commit comments

Comments
 (0)