Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
<p class="code">$shown</p>
<div class="tcalert"><<textbox "$sentguess" "" "Submit" autofocus>>
<<link 'Submit'>><</link>> | <<link 'Hint'>><<gethintdef>><</link>>
<<if $gameover == 1>>You won! Click Restart Game to get a new word.
$word means; $definition
<<elseif $gameover == 2>>You lost, the word was $word. Click Restart Game to get a new word.
$word means; $definition<</if>>
♥ $lives lives.
<<for _i, _name range $guessed>>_name <</for>>
</div>
<<nwinit>>
<<set UIBar.stow()>>
<<reveal "-">>
<<reveal " ">><<if $guessed.includes($sentguess) or $shown.count($sentguess) > 0>>
<<notify>>You already guessed that.<</notify>>
<<goto "NodewordsGame">>
<<elseif $sentguess.length == 1>>
<<if $word.count($sentguess) > 0>>
<<notify>>\
You guessed $sentguess, and it was correct, the word contains <<-$word.count($sentguess)>> $sentguess's.
<<reveal $sentguess>>. <<if not $shown.includes("❌")>>You won. <<set $gameover to 1>><</if>>
<</notify>>
<<else>>
<<notify>>
You guessed $sentguess, and it was wrong.
<<set $guessed.push($sentguess)>><<if $lives <= 0>><<set $gameover to 2>><</if>><<set $lives to $lives - 1>>\
<</notify>>
<</if>>.
<<else>>
<<notify>>\
<<if $word == $sentguess>>\
You guessed $sentguess, and it was correct.
<<set $shown to $sentguess>>. You won. <<set $gameover to 1>>
<<else>>
You guessed $sentguess, and it was wrong.<<set $guessed.push($sentguess)>><<set $lives to $lives - 3>><<if $lives < 1>><<set $gameover to 2>><</if>>
<</if>>.
<</notify>>
<</if>>
<<goto "NodewordsGame">><<link 'About Nodewords'>>
<<dialog 'About'>>\
Welcome to Nodewords!
This is a simple text game all about guessing words.
Enter a letter in to the text box and press Enter, or try to guess the full word.
Credits:
Kaiser - Programming, concept
ChapelR - Macros
Mog - Initial tests, design suggestions
Additional testers - WIP
Designed with Twine engine and SugarCube template.
Copyright © 2019 Kaiser (kaiser7@gmx.com)
All rights reserved.
<</dialog>>
<</link>>
<<link 'Hint'>>
<<dialog 'Alert'>>\
Hint system currently not implemented, sorry about that.
<</dialog>>
<</link>> <<widget 'gethintdef'>>\
<<dialog>>\
$definition
<</dialog>>
<</widget>><a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fcodedthoughts.github.io%2Fnodewords_v2%2F&src=sdkpreparse&display=popup">Facebook</a>
<a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fcodedthoughts.github.io%2Fnodewords_v2%2F&text=Come play Nodewords!&via=technomancer7&hashtags=trivia">Twitter</a>