Keyboard shortcuts

This commit is contained in:
2023-07-28 10:59:22 +02:00
parent b77768475d
commit 4aa85765b4
5 changed files with 88 additions and 22 deletions

36
src/universes/tutorial.ts Normal file
View File

@ -0,0 +1,36 @@
const global_text =`
// Global buffer: a central buffer to command them all.
// ====================================================
// The global buffer is a special buffer used to control
// the general behavior of your universe. It is meant to
// be used as a "control room" for your universe. You can
// make use of several commands to control the execution
// flow of all the files:
// - script(universe/universes: number): run script(s)
`
const local_buffer =`
// Local buffer: nine buffers to write your algorithms.
`
const init_buffer=`
// Init buffer: a buffer to initialize the universe.
// This universe is runned once when the universe is
// loaded!
`
export const tutorial_universe = {
global: { candidate: global_text, committed: global_text, evaluations: 0 },
locals: {
1: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
2: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
3: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
4: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
5: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
6: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
7: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
8: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
9: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
},
init: { candidate: init_buffer, committed: init_buffer, evaluations: 0 }
}