Skip to content

Instantly share code, notes, and snippets.



Last active Jan 5, 2020
What would you like to do?
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>Bayer Akinator</title>
<body id="home">
{% if result %}
<h1>You are thinking of {{ result }}!</h1>
{% else %}
<h1>{{ question_text }}</h1>
<input type="hidden" name="question" value="{{ question }}" />
<label><input type="radio" name="answer" value="1" required /> Yes</label><br />
<label><input type="radio" name="answer" value="0" required /> No</label><br />
<label><input type="radio" name="answer" value="0.5" required /> Don't know</label><br />
<label><input type="radio" name="answer" value="0.75" required /> Probably</label><br />
<label><input type="radio" name="answer" value="0.25" required /> Probably Not</label><br />
<br />
<input type="submit" value="Next" />
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment