DEV Community

Discussion on: Can you spot the algorithmic error?

moopet profile image
Ben Sinclair

Did you miss any bugs? Yes, the question count is undefined. For it to work in your code it needs to start at zero, otherwise the length of the game is indeterminate and possibly infinite :)

iamalexbrady profile image
alex brady Author

I actually just fixed this in the actual blog post yesterday. Good eye!