The little adaption of the #Snake game that I ported from the example on the #EasyForth website also runs in a terminal on #ESP32forth - I had to use a different implementation for the random number generation, but now it works!
The little adaption of the #Snake game that I ported from the example on the #EasyForth website also runs in a terminal on #ESP32forth - I had to use a different implementation for the random number generation, but now it works!
I picked up that simple "Snake" #Snake example code from the "Easy Forth" #EasyForth tutorial website and adapted it to run in CP/M #VT100 mode and allow for asymmetric level sizes (e.g. 80x24)
It did take me several hours to get all the fine tuning done but during the process I also learned how the "Snake" algorithm works (the game mechanism) as well as beginning to feel more comfortable writing #Forth #Code - you know, that moment when you are "in the zone" and fully focused on the code and when it all comes together in your brain. I love these moments.
Next I'll add my #TMS9918A code to the game and try to make it look a little more appealing. But for now, I am happy with what I have.