Commit Graph

62 Commits

Author SHA1 Message Date
david 119905685f fix: correct Elo calculator winner validation logic
The Elo calculator was incorrectly rejecting valid scores (10-7) because
it checked if team score >= 10 without verifying the opposing team's score.

Changes:
- Update winner determination to check both score >= 10 AND score > opponent
- Add detailed error message with actual scores for debugging
- Ensure only one team can win (not both reaching 10 points)
2026-03-27 12:24:46 -07:00
david 6a852e66e3 Add root route pointing to rankings page 2026-03-26 17:58:02 -07:00
david 1268889a78 Add Elo rating system with match entry and CSV upload
- Implement EloCalculator service for 2v2 Euchre matches
- Create background job processing with GoodJob
- Add single match entry form
- Add CSV upload for batch match entry
- Create player rankings view
- Add database schema for matches and elo snapshots
2026-03-26 16:28:24 -07:00
david 1a9b3496e1 🟢 create.rb for new files
🟢 destroy.rb for new files
🟢 edit.rb for new files
🟢 index.rb for new files
🟢 new.rb for new files
🟢 update.rb for new files
🟢 destroy.html.erb for new files
🟢 edit.html.erb for new files
🟢 index.html.erb for new files
🟢 new.html.erb for new files
🟢 destroy.rb for new files
🟢 edit.rb for new files
🟢 index.rb for new files
🟢 new.rb for new files

The provided Git diff contains the addition of several new files representing different actions for the admin/players section of the application. These new files include create.rb, destroy.rb, edit.rb, index.rb, new.rb, update.rb, as well as corresponding HTML erb templates and view files. Additionally, the routes.rb file has been modified to include routes for the new admin player actions. Finally, there are new spec files for testing each of the new actions.
2024-10-02 03:40:13 -07:00
david f1889dd885 add remaining migrations 2024-09-16 14:25:57 -07:00
david 643877e3ae add remaining migrations 2024-09-16 13:27:40 -07:00
david 006c7f62a3 fix the app because the blog post is wrong? 2024-09-12 20:16:14 -07:00
david 6040c7aaf2 implement players 2024-09-12 19:06:02 -07:00
david c7df3aacfe remove Gemfile.lock from repo
for now, once i make sure it runs on all platforms it'll be fine
2024-09-12 17:53:09 -07:00
david f777ea11b3 implement persistence 2024-09-12 17:52:04 -07:00
david e1c8153aa8 add ruby version 2024-09-06 15:40:13 -07:00
david d0010a5c9b initial commit hanami 2024-09-06 12:59:40 -07:00