-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
8c6bd7c
commit 83eccb8
Showing
13 changed files
with
365 additions
and
160 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
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
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,10 @@ | ||
{ | ||
if (get("examined-skeleton") == 1) { | ||
print("You have already examined this skeleton") | ||
} else { | ||
set("examined-skeleton", 1) | ||
print("You find nothing of value") | ||
} | ||
|
||
choice("Continue", { goto("entrypoint.jabl") }) | ||
} |
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
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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package cli | ||
|
||
import "fmt" | ||
|
||
type stateMapper struct{} | ||
type stateMapper struct { | ||
cache map[string]float64 | ||
} | ||
|
||
func NewStateMapper() *stateMapper { | ||
return &stateMapper{} | ||
return &stateMapper{ | ||
cache: map[string]float64{}, | ||
} | ||
} | ||
|
||
func (s *stateMapper) Get(key string) (float64, error) { | ||
fmt.Println("Get", key) | ||
return 0, nil | ||
return s.cache[key], nil | ||
} | ||
|
||
func (s *stateMapper) Set(key string, value float64) error { | ||
fmt.Println("Set", key, value) | ||
s.cache[key] = value | ||
return nil | ||
} |
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,70 @@ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
min-height: 100%; | ||
min-height: --webkit-fill-available; | ||
|
||
overflow: none; | ||
touch-action: pinch-zoom; | ||
|
||
background-color: #01130d; | ||
font-family: "Courier New", Courier, monospace; | ||
} | ||
|
||
.container { | ||
height: 88vh; | ||
max-width: 600px; | ||
margin: auto; | ||
display: flex; | ||
flex-direction: column; | ||
overflow: none; | ||
padding: 1em; | ||
} | ||
|
||
.console { | ||
display: flex; | ||
flex: 1; | ||
padding: 2em; | ||
background-color: #022117; | ||
color: #41ff00; | ||
border-radius: 18px; | ||
margin-bottom: 0; | ||
overflow-y: scroll; | ||
} | ||
|
||
.console-text { | ||
animation: type 2s steps(40) infinite; | ||
} | ||
|
||
.buttons { | ||
margin-top: 1em; | ||
display: flex; | ||
justify-content: start; | ||
gap: 1em; | ||
width: 100%; | ||
overflow-x: scroll; | ||
} | ||
|
||
.button { | ||
background-color: #022117; | ||
border-radius: 5px; | ||
border: none; | ||
color: #41ff00; | ||
cursor: pointer; | ||
fill: #41ff00; | ||
font-family: "Courier New", Courier, monospace; | ||
font-size: 1em; | ||
text-align: left; | ||
padding: 1em; | ||
min-width: 200px; | ||
} | ||
|
||
.button:hover { | ||
background-color: #023021; | ||
} | ||
|
||
.icon { | ||
color: #41ff00; | ||
width: 16px; | ||
height: 16px; | ||
} |
Oops, something went wrong.