3 ms·
If you like text-based games, it is a good introduction. Otherwise, only really tiny self-contained examples are good. You need to break it down into more 'ato
by pekk 15y ago
If you like text-based games, it is a good introduction.
Otherwise, only really tiny self-contained examples are good. You need to break it down into more 'atomic' pieces - at which point you are no longer developing a text game.
You could use a really trivial VERB NOUN parser instead of the usual RPN calculator example. You can use a directed-graph world as a showcase for linked lists. TCP is often learned by writing a simple chat server.
Higher-level languages might make it easier to constrain this sort of project to a few hours.
But most people do not like text games and doing a proper job is probably an order of magnitude more complex than you imagine it to be. So actually writing or modifying a text game is only a great idea if it is motivating to the learner.