Unable to submit entry for One Button Hack contest

I am unable to submit an entry for the One Button contest using the supplied minihackContest.submit function. I keep getting the error "Submission failed: HTTP 500 Something went wrong. Please try again in a moment.". It happens to me both in a MATLAB session as well as on a MATLAB Online session. No idea what I am doing wrong...
Jorge Paloschi
Jorge Paloschi on 12 Nov 2026 at 8:52
Thanks for looking at my issue. I would say there is a bug in the minihackContest.validate function because it validates my code, you need to add the readmatrix function to the list of banned functions. It would also be more helpful if the submit function gave a better diagnostic, rather than the misleading "Submission failed: HTTP 500
Something went wrong. Please try again in a moment."
Vinay Ramesh
Vinay Ramesh on 12 Nov 2026 at 13:49
@Jorge Paloschi sorry for the trouble, and I agree that validate should have caught readmatrix. The banned-functions list wasn't comprehensive, but we have now added readmatrix and several other file-reading functions, so using them will fail validation.Please let me know if you're still having issues and hope you can publish to the contest soon. Looking forward to seeing your entry.
Vinay Ramesh
Vinay Ramesh on 11 Nov 2026 at 19:28 (Edited on 11 Nov 2026 at 19:28)
Hi @Jorge Paloschi, it seems like your submission is failing because your game reads an external file, goalKeeper1.txt. You are supposed to keep all the logic in game.m file which gets uploaded to the contest when you submit. To fix it, you might want to figure out a way to put the data from that file directly into game.m so the game is fully self-contained and then submit again.
David
David on 11 Nov 2026 at 17:39
@Jorge Paloschi, we're looking into it and will get back to you.

Tags

No tags entered yet.