awacke1 commited on
Commit
d3e44c3
·
1 Parent(s): 834dd4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- # 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)):
 
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)):