Twine is "an open-source tool for telling interactive, nonlinear stories" (twinery.org, 2021) that allows users to create their own interactive fiction stories (think of these as online 'choose your own adventure stories) and text-based games without the need for any coding experience, but it allows for the creation of much more complex interaction via the integration of "variables, conditional logic, images, CSS, and JavaScript when you're ready" (twinery.org). Twine stories are saved as HTML files, so sharing them or posting them online is quite easy!
Absolutely. Twine allows you to create narratives for your students to engage in or you can also have your students create their own IF or games with no extensive technical support needed.
Follow the links on this site to learn more about Twine, how you can use it to create your own IF, and to find some examples of IF that you can play and examine to see how the coding works!
The Twine interface
If this explanation still leaves you confused, find links just below to some fun (though perhaps not educational) IFs created with Twine.
The Temple of No: https://crowscrowscrows.itch.io/the-temple-of-no
Out of the Blue: https://vahnya.itch.io/out-of-the-blue
Cyberpunk: https://sylven.itch.io/cdsgj
Space Frog: https://npckc.itch.io/space-frog
The You are Jeff Bezos Simulator (Caution! Profanity in this one): https://direkris.itch.io/you-are-jeff-bezos
Here is a list of a LOT of IF and text-based games created with Twine on itch.io: https://itch.io/games/top-rated/made-with-twine
And here is a link to the Annual Interactive Fiction Competition: https://ifcomp.org/