by dllthomas · 4y ago · 0 comments
From a skim, these seem like games that run in the terminal usually spawned from a shell, but that is not the same thing as being "run entirely in your Linux shell."
For the headline itself I think IF with a parser counts as "command line only", though it still doesn't run in your shell.
I don't know of any games that run "in your shell" but a good example of the distinction is that mutt and pine run in a terminal, but nmh actually runs in the shell (not in the sense of processes but in the sense that the shell is what I am using to string together actions when I use nmh).
Counter example: command line tetris! [0]. Although... still gives the player the advantage of "freezing time" on every move :-).
I once made a shell driven instant messaging (libpurple) client that could serve as a point of reference - incoming messages were reported with PROMPT_COMMAND, and reply would send a message to the sender of the last message reported rather than the last message received.
Either through a savefile:
$ play -savefile somefile.sav -moves run,run,jump
... Or maybe using some sort of "cookie": $ play -cookie "perico" -moves left # outputs "perico42"
$ play -cookie "perico42" -moves left # outputs "the-new-encoded-game-state"
In your case, it seems like the purple server was holding the game state.Another idea is to make a deterministic game, then allow the user to expand the input one move at the time:
$ play -seed 314 -moves left
$ play -seed 314 -moves left,right
$ play -seed 314 -moves left,right,up
$ ...I'm tempted to make some kind of gimmick website or Twitter account, "Not Command Line", which posts examples of this confusion...