Hacker News new | ask | show | jobs
by wolfgke 3265 days ago
Croteam applied lots of automated testing by bots in The Talos Principle to ensure that changes in level design cannot lead to a situation where the game cannot be completed anymore:

> https://venturebeat.com/2014/11/04/the-talos-principle-under...

> http://www.gdcvault.com/play/1022784/Fast-Iteration-Tools-in...

1 comments

That's not TDD, really, but it's a clever way of testing both the AI, and level changes, to a certain extent. If you drop a fucking boulder and you can't cross it yeah, it will light you up with red floodlights, but if a certain corner drops you into the nether...

Unless the AI also knows to check each possible interaction, movement, etc.

Can you clarify why you do not consider this TDD?
I think that if one is meticulous, sk0g is actually right (source: https://en.wikipedia.org/w/index.php?title=Test-driven_devel...): In TDD one begins anything (in particular any new feature) with writing a test for it, then one runs all tests to see if something fails and only then starts to write code if necessary until all tests pass.
In TDD you only write code if it makes a red light green, so to speak.

First you make the test, then you run it. It will obviously fail, and then you implement code that starts passing tests.