Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,13 +51,13 @@ with expander:
|
|
51 |
|
52 |
if st.button('Place tile'):
|
53 |
# Check if the selected tile is in the rack
|
54 |
-
if tile in rack:
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
# Calculate the score for the word
|
62 |
word = ''
|
63 |
for i in range(len(board)):
|
|
|
51 |
|
52 |
if st.button('Place tile'):
|
53 |
# Check if the selected tile is in the rack
|
54 |
+
if tile in rack:
|
55 |
+
# Place the tile on the board
|
56 |
+
row -= 1
|
57 |
+
col -= 1
|
58 |
+
board[row][col] = tile
|
59 |
+
rack.remove(tile)
|
60 |
+
|
61 |
# Calculate the score for the word
|
62 |
word = ''
|
63 |
for i in range(len(board)):
|