kitlang / kit

Kit: a magical, high performance programming language, designed for game development.
https://www.kitlang.org
Other
1.02k stars 29 forks source link

Fix Hangman sample bug #116

Closed TheSpydog closed 5 years ago

TheSpydog commented 5 years ago

I found when testing the Hangman sample that the game state description contained some random letters and symbols instead of underscores:

Screen Shot 2019-03-15 at 5 26 37 PM

This appears to be because the Game.filled CArray wasn't properly initialized, so it contained garbage data. This change fixes the game so the blanks appear as intended.

Note that I'm very new to Kit, so if there's a better way to fix this, I'd be curious to learn what the solution is. :)