Last Modified: January 02, 2025 by K. Borchert (katjab@millisecond.com), Millisecond
Script Copyright © Millisecond Software, LLC
This sample script shows how to implement the game of Blackjack with Inquisit.
variable (player can quit at any point)
- number of games up to player
File Name: blackjack_summary*.iqdat
| Name | Description |
|---|---|
| inquisit.version | Inquisit version number |
| computer.platform | Device platform: win | mac |ios | android |
| computer.touch | 0 = device has no touchscreen capabilities; 1 = device has touchscreen capabilities |
| computer.hasKeyboard | 0 = no external keyboard detected; 1 = external keyboard detected |
| startDate | Date the session was run |
| startTime | Time the session was run |
| subjectId | Participant ID |
| groupId | Group number |
| sessionId | Session number |
| elapsedTime | Session duration in ms |
| completed | 0 = Test was not completed 1 = Test was completed |
| games | Counts the number of games played |
| pwins | Counts the number of times the player won |
| dwins | Counts the number of times the dealer won |
| draws | Counts the number of draws |
File Name: blackjack_raw*.iqdat
| Name | Description |
|---|---|
| build | Inquisit version number |
| computer.platform | Device platform: win | mac |ios | android |
| computer.touch | 0 = device has no touchscreen capabilities; 1 = device has touchscreen capabilities |
| computer.hasKeyboard | 0 = no external keyboard detected; 1 = external keyboard detected |
| date | Date the session was run |
| time | Time the session was run |
| subject | Participant ID |
| group | Group number |
| session | Session number |
| blockcode | The name the current block (built-in Inquisit variable) |
| blocknum | The number of the current block (built-in Inquisit variable) |
| trialcode | The name of the currently recorded trial (built-in Inquisit variable) |
| trialnum | The number of the currently recorded trial (built-in Inquisit variable) trialnum is a built-in Inquisit variable; it counts all trials run even those that do not store data to the data file. |
| response | The participant's response (selected button) |
| latency | The response latency (in ms); measured from:onset of current trial |
| dealerHand | Sum of the dealer's cards |
| playerHand | Sum of the player's cards |
| outcome | "p win", "d win", "draw" |
| dCard1 | Value of dealer card1 |
| dCard2 | Value of dealer card2 |
| dCard3 | Value of dealer card3 |
| dCard4 | Value of dealer card4 |
| dCard5 | Value of dealer card5 |
| pCard1 | Value of participant card1 |
| pCard2 | Value of participant card2 |
| pCard3 | Value of participant card3 |
| pCard4 | Value of participant card4 |
| pCard5 | Value of participant card5 |