Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "task_intentions",
"version": "1.7.11",
"version": "1.7.12",
"description": "Intentions Game",
"private": true,
"main": "dist/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/classes/Compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@ class Compute {
*/
public async submit(data: any[], useTestResponses=false): Promise<ModelResponse> {
if (useTestResponses) {
consola.warn("Using test responses to generate partner behavior");
data = TEST_RESPONSES;
}

Expand Down
2 changes: 1 addition & 1 deletion src/view/screens/Loading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const Loading: FC<Screens.Loading> = (

// Launch model computation
consola.info(`Running model computation...`);
const response = await window.Compute.submit(requestResponses, true);
const response = await window.Compute.submit(requestResponses, false); // INT-80: Should be `false` in production

// Parse and store the JSON content
try {
Expand Down
3 changes: 3 additions & 0 deletions src/view/screens/Trial/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ const Trial: FC<Screens.Trial> = (
DEFAULT_POINTS.options.one.partner = trialData["par1"];
DEFAULT_POINTS.options.two.participant = trialData["ppt2"];
DEFAULT_POINTS.options.two.partner = trialData["par2"];

// Update the correct answer (from `Ac`)
trialState.answer = trialData["Ac"] === 1 ? "Option 1" : "Option 2";
} else {
consola.warn(`'playerGuess' trial state data incomplete, using defaults`);
}
Expand Down