ASPP / pelita_template

Default template to get started with the Pelita game.
3 stars 25 forks source link

Proof-of-concept for GUI debuggable bot. #14

Open Debilski opened 5 years ago

Debilski commented 5 years ago

This will need some more polishing and testing (as well as documentation). But here’s how debugging one’s bot could look like.

Currently, this will debug without a dedicated viewer (which is more complicated to implement but most of all more complicated to document, we might be better off leaving this out?).

otizonaizit commented 5 years ago

obsolete? Why can't one run the bot in demo08_debugger.py in a normal game like:

pelita --no-timeout demo08_debugger.py demo01_stopping.py
Debilski commented 5 years ago

obsolete? Why can't one run the bot in demo08_debugger.py in a normal game like:

pelita --no-timeout demo08_debugger.py demo01_stopping.py

I’d say it’s even less obsolete now as run_game now does everything that it should do. Noone should be forced to debug on the command line with --no-timeout when there is a better way. (Having allow_exceptions=True is probably also useful here.)