puzzlescript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
CLI_
SPRITE_
SIZE
START_
MODE
ICli
Options
IGame
Info
IGame
Recording
ILevel
Recording
IPackage
ISave
File
SOLUTION_
ROOT
pkg
first2
Lines
percent
Complete
play
Game
prompt
Choose
Level
prompt
Game
prompt
Pixel
Size
prompt
Play
Another
run
show
Controls
shuffle
Array
sleep
start
Prompts
And
Play
Game
to
Unicode
Index
Enumerations
CLI_
SPRITE_
SIZE
START_
MODE
Interfaces
ICli
Options
IGame
Info
IGame
Recording
ILevel
Recording
IPackage
ISave
File
Variables
SOLUTION_
ROOT
pkg
Functions
first2
Lines
percent
Complete
play
Game
prompt
Choose
Level
prompt
Game
prompt
Pixel
Size
prompt
Play
Another
run
show
Controls
shuffle
Array
sleep
start
Prompts
And
Play
Game
to
Unicode
Variables
Let
SOLUTION_
ROOT
SOLUTION_
ROOT
:
string
= path.join(__dirname, '../../gist-solutions/')
Const
pkg
pkg
:
IPackage
= require('../../package.json') as IPackage
Functions
first2
Lines
first2
Lines
(
filePath
:
string
)
:
Promise
<
string
>
Parameters
filePath:
string
Returns
Promise
<
string
>
percent
Complete
percent
Complete
(
game
:
IGameInfo
)
:
string
Parameters
game:
IGameInfo
Returns
string
play
Game
play
Game
(
data
:
GameData
, currentLevelNum
:
number
, recordings
:
ISaveFile
, ticksToRunFirst
:
string
, absPath
:
string
, solutionPath
:
string
, cliUi
:
boolean
, onlyOneLevel
:
boolean
)
:
Promise
<
void
>
Parameters
data:
GameData
currentLevelNum:
number
recordings:
ISaveFile
ticksToRunFirst:
string
absPath:
string
solutionPath:
string
cliUi:
boolean
onlyOneLevel:
boolean
Returns
Promise
<
void
>
prompt
Choose
Level
prompt
Choose
Level
(
recordings
:
ISaveFile
, data
:
GameData
, cliLevel
:
Optional
<
number
>
)
:
Promise
<
number
>
Parameters
recordings:
ISaveFile
data:
GameData
cliLevel:
Optional
<
number
>
Returns
Promise
<
number
>
prompt
Game
prompt
Game
(
games
:
IGameInfo
[]
, cliGameTitle
:
string
|
undefined
)
:
Promise
<
IGameInfo
>
Parameters
games:
IGameInfo
[]
cliGameTitle:
string
|
undefined
Returns
Promise
<
IGameInfo
>
prompt
Pixel
Size
prompt
Pixel
Size
(
data
:
GameData
, cliSpriteSize
:
Optional
<
CLI_SPRITE_SIZE
>
)
:
Promise
<
void
>
Parameters
data:
GameData
cliSpriteSize:
Optional
<
CLI_SPRITE_SIZE
>
Returns
Promise
<
void
>
prompt
Play
Another
prompt
Play
Another
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
run
run
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
show
Controls
show
Controls
(
)
:
void
Returns
void
shuffle
Array
shuffle
Array<T>
(
array
:
T
[]
)
:
T
[]
Type parameters
T
Parameters
array:
T
[]
Returns
T
[]
sleep
sleep
(
ms
:
number
)
:
Promise
<
Object
>
Parameters
ms:
number
Returns
Promise
<
Object
>
start
Prompts
And
Play
Game
start
Prompts
And
Play
Game
(
gamePath
:
string
, gistId
:
Optional
<
string
>
, cliResume
:
boolean
|
undefined
, cliLevel
:
number
|
undefined
)
:
Promise
<
void
>
Parameters
gamePath:
string
gistId:
Optional
<
string
>
cliResume:
boolean
|
undefined
cliLevel:
number
|
undefined
Returns
Promise
<
void
>
to
Unicode
to
Unicode
(
theString
:
string
)
:
string
Parameters
theString:
string
Returns
string
Generated using
TypeDoc