Hello MIT App Inventor community!
I'm developing an offline 100 Squares betting board app for basketball (similar to football squares/pool).
-
2 teams.
-
Winning square = last digit of Team A's final score (row) + last digit of Team B's final score (column), e.g., 112–89 → 2–9 wins.
-
Fully offline, manual admin/user input.
What's already working perfectly:
-
10x10 grid (00 to 99 squares) auto-generated with numbers 0-9 on axes
-
Bettor selection/assignment to squares
-
Pot total calculation
-
Payout display logic
-
"Declare Winner" / enter winning digits → highlights winning square
-
Disables the winning square after declaration
-
Shows the winning bettor's name
Remaining issues / what I need help with (priority order):
-
Infinite looping or repeating prompt after bettor input After the user/admin enters a bettor name and bet amount (probably in TextBoxes + Button to "Add Bet" or assign square), the app keeps looping/asking for input again and again without stopping or moving forward. It doesn't crash but won't proceed to the next step or let me select squares normally. I suspect a loop in the button .Click event or a Clock/Timer that's not stopping, or maybe an event firing repeatedly.
-
Add manual input for Team Names and Final Scores
-
2 TextBoxes or Labels + TextBoxes for Team A Name and Team B Name (e.g., "Lakers" vs "Celtics")
-
2 numeric TextBoxes for Final Score Team A and Final Score Team B
-
Button like "Set Winner" or "Calculate Winner" that takes the last digits (e.g., scoreA mod 10, scoreB mod 10), finds/highlights the matching square, shows the owner, updates payout, etc. (I already have winning square highlight/disable logic – just need to connect it to these inputs instead of manual digit entry.)
-
-
Optional nice-to-have: Fixed bet amount mode Add a global fixed amount (e.g., ₱100 or $10 per square) that the admin sets once via a TextBox + "Set Fixed Bet" button. Then, when adding bettors, skip individual amount input – every square just uses this fixed value. This way all bets are equal (common in some pools), and pot = fixed_amount × number_of_bets. Maybe a CheckBox "Use Fixed Bets?" to toggle between per-bettor amounts and fixed.
The app is very close – these are the last blockers!
I've attached my current .aia file + screenshots of:
-
The squares board
-
Bettor input section (where the loop happens)
-
Winner declaration area
If anyone can open the .aia and suggest/fix the blocks for these (especially the looping issue and connecting scores → winner), or even upload a corrected version, I would be extremely grateful. Happy to credit you or share the final app!
Thanks so much in advance – really appreciate any help from the community! ![]()
![]()
Best,
Karl
