This repository has been archived by the owner on Nov 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
11,987 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
IMPROVE LEARNING ON WRONG ANSWERS (cutting in half thing?) | ||
|
||
adjust weights | ||
ask/add more questions | ||
clean up code (esp. select statements) | ||
question suggestions | ||
"I don't know" option | ||
web interface | ||
|
||
CHOOSING QUESTIONS | ||
|
||
BETTER PICKING ALGORITHM FOR ANSWERS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
# config.py | ||
|
||
import web | ||
web.config.debug = False | ||
db = web.database(dbn='sqlite', db='20q.db') | ||
debug = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$def with (page) | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>20 Questions</title> | ||
<meta charset="utf-8" /> | ||
</head> | ||
<body> | ||
<header> | ||
<hgroup> | ||
<h1>Welcome to 20 Questions!</h1> | ||
</hgroup> | ||
</header> | ||
$:page | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$def with (chosen) | ||
|
||
$if chosen: | ||
<p>I guess....</p> | ||
<h1>$chosen.name</h1> | ||
<p>Was I right?</p> | ||
<form action="/guess/$chosen.id" method="post"> | ||
<input type="submit" name="answer" value="yes"> | ||
<input type="submit" name="answer" value="no"> | ||
</form> | ||
$else: | ||
<p>I've got nothing.</p> | ||
<form action="/guess" method="post"> | ||
<input type="submit" name="answer" value="teach me"> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$def with (question) | ||
|
||
|
||
$if question == 'begin': | ||
<h1>Think of a character...</h1> | ||
<br /> | ||
<form action="/begin" method="post"> | ||
<input type="submit" value="Begin!"> | ||
</form> | ||
$elif question: | ||
<p>$question.text</p> | ||
<form action="/answer/$question.id" method="post"> | ||
<input type="submit" name="answer" value="yes"> | ||
<br / > | ||
<input type="submit" name="answer" value="unsure"> | ||
<br /> | ||
<input type="submit" name="answer" value="no"> | ||
</form> | ||
$else: | ||
<p>I DO NOT KNOW WHAT TO DO HERE. (guess)</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<form action="/learn" method="post"> | ||
<h1>Who were you thinking of?</h1> | ||
<input type="text" name="name"> | ||
<br /> | ||
<h2>Suggest a question?</h2> | ||
<input type="text" name="question"> | ||
<br /> | ||
<input type="submit" value="submit"> | ||
</form> |
Oops, something went wrong.