Spaces:
Runtime error
Runtime error
Commenting out make_move loop to test st.pyplot()
Browse files
__pycache__/game_database.cpython-311.pyc
ADDED
Binary file (2.97 kB). View file
|
|
__pycache__/logger.cpython-311.pyc
ADDED
Binary file (4.43 kB). View file
|
|
app.py
CHANGED
@@ -138,6 +138,7 @@ def main():
|
|
138 |
|
139 |
game_state = "e4 e5"
|
140 |
game_ongoing = True
|
|
|
141 |
while game_ongoing:
|
142 |
game_state, game_ongoing = make_move(white, game_state)
|
143 |
onetime_logger.add_legal_move(game_state)
|
@@ -149,11 +150,10 @@ def main():
|
|
149 |
if not game_ongoing:
|
150 |
#print_game(game_state)
|
151 |
break
|
152 |
-
|
153 |
finished_game = onetime_logger.return_formatted_game()
|
154 |
onetime_db = GameDatabase()
|
155 |
onetime_db.add_game(finished_game)
|
156 |
-
onetime_db.display_tournament
|
157 |
|
158 |
onetime_db.display_tournament()
|
159 |
if __name__ == "__main__":
|
|
|
138 |
|
139 |
game_state = "e4 e5"
|
140 |
game_ongoing = True
|
141 |
+
"""
|
142 |
while game_ongoing:
|
143 |
game_state, game_ongoing = make_move(white, game_state)
|
144 |
onetime_logger.add_legal_move(game_state)
|
|
|
150 |
if not game_ongoing:
|
151 |
#print_game(game_state)
|
152 |
break
|
153 |
+
"""
|
154 |
finished_game = onetime_logger.return_formatted_game()
|
155 |
onetime_db = GameDatabase()
|
156 |
onetime_db.add_game(finished_game)
|
|
|
157 |
|
158 |
onetime_db.display_tournament()
|
159 |
if __name__ == "__main__":
|