Skip to content

Commit

Permalink
Merge pull request #50 from thejackal360/local-runs
Browse files Browse the repository at this point in the history
Local runs
  • Loading branch information
thejackal360 authored Dec 8, 2023
2 parents 87c2a17 + 625f572 commit b224a2c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.egg-info*
dist/
*__pycache__*
build/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ if __name__ == "__main__":
app.run(debug=True)
```

A "local run" is when the user is hosting and accessing the server on
localhost. In other words, the server is hosted on the same machine that
is accessing it.

## Install/Project Configuration

To create a new Elena-based project, first install the Elena library and its dependencies from the cloned git repo's root:
Expand Down
10 changes: 5 additions & 5 deletions src/example/static/js/elena_top.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,15 @@ function inc_point_count(i = 1) {
if (i == 1) {
var point_convo_idx = randint(3);
if (point_convo_idx == 0) {
chelsea_msgs.push("Here's a 🍒. One less for me.");
chelsea_msgs.push("Here's a 🥝. One less for me.");
} else if (point_convo_idx == 1) {
chelsea_msgs.push("Have a 🍒.");
chelsea_msgs.push("Have a 🥝.");
} else {
chelsea_msgs.push("I shall award you with one 🍒.");
chelsea_msgs.push("I shall award you with one 🥝.");
}
} else if (i > 0) {
chelsea_msgs.push("Congrats! Here's a " +
i.toString() + " 🍒 bonus!");
i.toString() + " 🥝 bonus!");
}
point_inc_waits += i;
}
Expand Down Expand Up @@ -301,7 +301,7 @@ function back_button_click() {
$("#chat").animate({opacity: 0}, {duration: 3000}).promise().done(function() {
$("#chat").hide();
document.getElementById("final_score").innerHTML =
"<br/>Final score: " + pointcount_var.toString() + "&#127826;";
"<br/>Final score: " + pointcount_var.toString() + "&#129373;";
$("#final_score").animate({opacity: 1}, {duration: 3000}).promise().done(function() {
$("#final_score").animate({opacity: 0}, {duration: 3000}).promise().done(function() {
document.location.reload();
Expand Down
4 changes: 2 additions & 2 deletions src/example/static/js/games/Bacterial Culture_elena.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function Bacterial_Culture_convo(val) {
// Race condition: No youHold and no more chelsea_msgs
// Need to hold until you generate topic content.
chelsea_msgs.push("Good to meet you, " + val);
chelsea_msgs.push("Answer trivia questions to earn &#127826;s.");
chelsea_msgs.push("Answer trivia questions to earn &#129373;s.");
if (Bacterial_CultureNumTopics > 1) {
chelsea_msgs.push("Pay &#127826;s to play mini games.");
chelsea_msgs.push("Pay &#129373;s to play mini games.");
}
chelsea_msgs.push("Let's get started!");
topic = Bacterial_Culture_randint_topics();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function Temperature_Controller_Part_II_convo(val) {
// Race condition: No youHold and no more chelsea_msgs
// Need to hold until you generate topic content.
chelsea_msgs.push("Good to meet you, " + val);
chelsea_msgs.push("Answer trivia questions to earn &#127826;s.");
chelsea_msgs.push("Answer trivia questions to earn &#129373;s.");
if (Temperature_Controller_Part_IINumTopics > 1) {
chelsea_msgs.push("Pay &#127826;s to play mini games.");
chelsea_msgs.push("Pay &#129373;s to play mini games.");
}
chelsea_msgs.push("Let's get started!");
topic = Temperature_Controller_Part_II_randint_topics();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function Temperature_Controller_Part_I_convo(val) {
// Race condition: No youHold and no more chelsea_msgs
// Need to hold until you generate topic content.
chelsea_msgs.push("Good to meet you, " + val);
chelsea_msgs.push("Answer trivia questions to earn &#127826;s.");
chelsea_msgs.push("Answer trivia questions to earn &#129373;s.");
if (Temperature_Controller_Part_INumTopics > 1) {
chelsea_msgs.push("Pay &#127826;s to play mini games.");
chelsea_msgs.push("Pay &#129373;s to play mini games.");
}
chelsea_msgs.push("Let's get started!");
topic = Temperature_Controller_Part_I_randint_topics();
Expand Down

0 comments on commit b224a2c

Please sign in to comment.