|
|
|
|
|
by abecedarius
3863 days ago
|
|
The Snake code is more complex than it needs to be -- example: defining directions as constants from 1 to 4 and then using IF on the direction, instead of defining directions as offsets in the coordinates. But simpler code would not be that much simpler -- Forth just takes getting used to, and I guess the step up to a whole game was too steep. Add some smaller exercises first? Like Sokoban? (Generally the main thing that'd make Forth more readable is local variables in place of stack manipulations.) |
|