diff --git a/.github/workflows/wrapper.yml b/.github/workflows/wrapper.yml deleted file mode 100644 index 0a3856db..00000000 --- a/.github/workflows/wrapper.yml +++ /dev/null @@ -1,124 +0,0 @@ -name: Wrapper CI - -on: - push: - branches: ["main"] - pull_request: - workflow_dispatch: - -jobs: - build: - name: ${{ matrix.config.name }} - runs-on: ${{ matrix.config.os }}-${{ matrix.config.os-version }} - - strategy: - fail-fast: false - matrix: - config: - - name: Windows - os: windows - os-version: 2022 - - - name: Linux - os: ubuntu - os-version: 24.04 - - - name: MacOS - os: macos - os-version: 13 - - - name: MacOS (Arm64) - os: macos - os-version: 14 - - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: "0" - - - name: Setup MSVC (Windows) - if: matrix.config.os == 'windows' - uses: TheMrMilchmann/setup-msvc-dev@v3 - with: - arch: x64 - toolset: 14.40 - - - name: Setup GCC (Linux) - if: matrix.config.os == 'ubuntu' - uses: egor-tensin/setup-gcc@v1 - with: - version: 14 - platform: x64 - - - name: Setup Clang (MacOS) - if: matrix.config.os == 'macos' - run: | - brew update - brew install llvm@18 - echo "$(brew --prefix)/opt/llvm/bin" >> $GITHUB_PATH - echo "LDFLAGS=-L$(brew --prefix)/opt/llvm/lib -L$(brew --prefix)/opt/llvm/lib/c++ -Wl,-rpath,$(brew --prefix)/opt/llvm/lib/c++" >> "$GITHUB_ENV" - echo "CPPFLAGS=-I$(brew --prefix)/opt/llvm/include" >> "$GITHUB_ENV" - echo "CC=clang" >> "$GITHUB_ENV" - echo "CXX=clang++" >> "$GITHUB_ENV" - echo "OBJC=clang" >> "$GITHUB_ENV" - echo "CC_LD=lld" >> "$GITHUB_ENV" - echo "CXX_LD=lld" >> "$GITHUB_ENV" - echo "OBJC_LD=lld" >> "$GITHUB_ENV" - - - name: Setup meson (MacOS) - if: matrix.config.os == 'macos' - run: | - brew update - brew install meson - - # NOTE: meson has no dependencies, so --break-system-packages doesn't really break anything! - - name: Setup meson - if: matrix.config.os != 'macos' - run: | - pip install meson --break-system-packages - - - name: Install dependencies (Linux) - if: matrix.config.os == 'ubuntu' - run: | - sudo apt-get update - sudo apt-get install ninja-build -y - sudo pip install meson --break-system-packages - - - name: Fix pkg-config (Windows) - if: matrix.config.os == 'windows' - run: | - Remove-Item -Path C:\Strawberry\ -Recurse - choco install pkgconfiglite - echo "PKG_CONFIG_PATH=C:/lib/pkgconfig" | Out-File -FilePath $env:GITHUB_ENV -Append - - - name: Configure - run: meson setup build -Dbuildtype=release -Ddefault_library=static -Dclang_libcpp=${{ matrix.config.os == 'macos' && 'enabled' || 'disabled' }} -Donly_build_libs=true ${{ matrix.config.os == 'windows' && '-Db_vscrt=static_from_buildtype' || '' }} - - - name: Build and install Libs - if: matrix.config.os != 'ubuntu' - run: meson install -C build - - - name: Build and install Libs (Linux) - if: matrix.config.os == 'ubuntu' - run: sudo meson install -C build - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Build package - run: | - cd wrapper/javascript - npm install -D - npm run build --verbose - npm run test - npm pack - - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: ${{ matrix.config.name }} Node.js Wrapper - path: wrapper/javascript/oopetris*.tgz - \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..bbdd4a4c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "wrapper/javascript"] + path = wrapper/javascript + url = https://github.com/Totto16/oopetris_wrapper_js.git +[submodule "wrapper/c"] + path = wrapper/c + url = https://github.com/Totto16/oopetris_wrapper_c.git diff --git a/meson.options b/meson.options index 5593a8ea..9902188b 100644 --- a/meson.options +++ b/meson.options @@ -25,4 +25,3 @@ option( value: false, description: 'if you only want to build the libs, enable this', ) - diff --git a/src/libs/core/meson.build b/src/libs/core/meson.build index 89c80342..96cdf964 100644 --- a/src/libs/core/meson.build +++ b/src/libs/core/meson.build @@ -22,10 +22,18 @@ liboopetris_core = library( install: true, ) +## remove '-stdlib=libc++' from the list, if it's present +core_dep_compile_args = [] +foreach value : core_lib.get('compile_args') + if value != '-stdlib=libc++' + core_dep_compile_args += value + endif +endforeach + liboopetris_core_dep = declare_dependency( link_with: liboopetris_core, include_directories: core_lib.get('inc_dirs'), - compile_args: core_lib.get('compile_args'), + compile_args: core_dep_compile_args, dependencies: core_lib.get('deps'), version: meson.project_version(), ) diff --git a/tools/dependencies/meson.build b/tools/dependencies/meson.build index 4e702877..1ef446f3 100644 --- a/tools/dependencies/meson.build +++ b/tools/dependencies/meson.build @@ -3,9 +3,14 @@ only_allow_native_libs = false if meson.is_cross_build() if host_machine.system() == 'switch' or host_machine.system() == '3ds' # we do not link to code that was compiled with gcc 10.1 / gcc 7.1, the code we link with is all compiled with gcc 13.2 + + temp = core_lib.get('compile_args') + temp += '-Wno-psabi' + core_lib += { - 'compile_args': [core_lib.get('compile_args'), '-Wno-psabi'], + 'compile_args': temp, } + temp = 0 only_allow_native_libs = true @@ -76,10 +81,14 @@ if not have_std_expected message('Compiler doesn\'t support std::expected, using fallback') tl_exp_dep = dependency('tl-expected', required: true) + + temp = core_lib.get('compile_args') + temp += '-D_USE_TL_EXPECTED' core_lib += { - 'compile_args': [core_lib.get('compile_args'), '-D_USE_TL_EXPECTED'], + 'compile_args': temp, 'deps': [core_lib.get('deps'), tl_exp_dep], } + temp = 0 endif # check std::optional support @@ -285,20 +294,20 @@ if build_application endif - core_lib += { - 'compile_args': [ - core_lib.get('compile_args'), - '-DBUILD_INSTALLER', - ], - } + temp = core_lib.get('compile_args') + temp += '-DBUILD_INSTALLER' + core_lib += {'compile_args': temp} + temp = 0 endif if is_flatpak_build app_name = 'com.github.mgerhold.OOPetris' - core_lib += { - 'compile_args': [core_lib.get('compile_args'), '-DFLATPAK_BUILD'], - } + + temp = core_lib.get('compile_args') + temp += '-DFLATPAK_BUILD' + core_lib += {'compile_args': temp} + temp = 0 endif have_file_dialogs = false diff --git a/tools/options/meson.build b/tools/options/meson.build index ff153c1d..02a77ef8 100644 --- a/tools/options/meson.build +++ b/tools/options/meson.build @@ -26,14 +26,14 @@ graphics_lib = { } if meson.is_cross_build() and host_machine.system() == 'serenity' - core_lib += { - 'compile_args': [ - core_lib.get('compile_args'), - '-D__SERENITY__', - '-DINSTALL_FILES', - '-DINSTALL_LOCATION=' + get_option('prefix'), - ], - } + temp = core_lib.get('compile_args') + temp += [ + '-D__SERENITY__', + '-DINSTALL_FILES', + '-DINSTALL_LOCATION=' + get_option('prefix'), + ] + core_lib += {'compile_args': temp} + temp = 0 endif cpp = meson.get_compiler('cpp') @@ -68,14 +68,18 @@ elif cpp.get_id() == 'clang' if build_with_libcpp + temp = core_lib.get('compile_args') + temp += '-stdlib=libc++' + core_lib += { - 'compile_args': [core_lib.get('compile_args'), '-stdlib=libc++'], + 'compile_args': temp, 'deps': [ core_lib.get('deps'), cpp.find_library('c++'), cpp.find_library('c++abi'), ], } + temp = 0 if not meson.is_subproject() add_global_link_arguments('-stdlib=libc++', language: ['cpp']) @@ -87,7 +91,7 @@ elif cpp.get_id() == 'clang' endif else - # TODO: once clang with libstdc++ (gcc c++ stdlib) supports std::expectedt, remove this special behaviour + # TODO: once clang with libstdc++ (gcc c++ stdlib) supports std::expected, remove this special behaviour allow_tl_expected_fallback = true endif diff --git a/wrapper/README.md b/wrapper/README.md index 7802fde2..1da83726 100644 --- a/wrapper/README.md +++ b/wrapper/README.md @@ -2,7 +2,8 @@ ## What is this -This are wrappers of some OOPEtris functionaility in other languages +This are wrappers of some OOPEtris functionaility in other languages. +They are all in submodules alias in a seperate git repo. They currently wrap this: - OOPetris Recordings @@ -20,6 +21,7 @@ Current: Planned: - Python - Lua +- Java - Haskell ## Other diff --git a/wrapper/c b/wrapper/c new file mode 160000 index 00000000..dd9876b5 --- /dev/null +++ b/wrapper/c @@ -0,0 +1 @@ +Subproject commit dd9876b5bff9a340e51cabbc4888ea1ed49d403c diff --git a/wrapper/c/README.md b/wrapper/c/README.md deleted file mode 100644 index 9b738ac6..00000000 --- a/wrapper/c/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# OOpetris C Wrapper - - -## What is this? - -This wraps oopetris functionality for C - - - - - -## Platform support - -We officially support Linux, Windows and MacOS, if any error occurs regarding those platform, feel free to open an issue - -## How to obtain - -You have to compile it yourself, we don't provide prebuilt-packages atm. The Ci may produce some artifacts, that are useable, but not optimized for installation or usage. - -## How to build it yourself - -This uses meson to build the wrapper, you need to install `libboopetris_recordings` to be able to use this. - -Than you just can invoke `meson setup build` and `meson compile -C build` to build the library. - -You can install this library by using `meson install -C build`. It comes with a pkg-config file, so it is usable for usage with other build systems. diff --git a/wrapper/c/example/main.c b/wrapper/c/example/main.c deleted file mode 100644 index 7ac12f32..00000000 --- a/wrapper/c/example/main.c +++ /dev/null @@ -1,298 +0,0 @@ - -#include "oopetris_wrapper.h" -#include -#include -#include -#include -#include - -#include "oopetris_wrapper.h" - - -// usage of a "typeof c++ operator in C, it's not the same, but it can do some stuff, first seen -// this in VO Eidp (Einführung in die Programmierung - PS 11)", _Generic makes this possible :) - -void print_bool(bool val) { - printf("%s", val ? "true" : "false"); -} - - -void print_u8(uint8_t x) { - printf("%" PRIu8, x); -} - -void print_i8(int8_t x) { - printf("%" PRIi8, x); -} - -void print_u32(uint32_t x) { - printf("%" PRIu32, x); -} - -void print_i32(int32_t x) { - printf("%" PRIi32, x); -} - -void print_u64(uint64_t x) { - printf("%" PRIu64, x); -} - -void print_i64(int64_t x) { - printf("%" PRIi64, x); -} - -void print_float(float x) { - printf("%f", x); -} - -void print_double(double x) { - printf("%f", x); -} - -void print_string(const char* x) { - printf("%s", x); -} - - -void print_field(const OOPetrisAdditionalInformationField* const field); - -void print_vector(const OOPetrisAdditionalInformationField* const* const field) { - - printf("\n"); - for (size_t i = 0; i < stbds_arrlenu(field); ++i) { - print_field(field[i]); - printf("\n"); - } -} - -// clang-format off -#define PRINT_VALUE(val) \ - _Generic((val),\ - _Bool : print_bool,\ - uint8_t : print_u8, \ - int8_t : print_i8,\ - uint32_t : print_u32,\ - int32_t : print_i32,\ - uint64_t : print_u64,\ - int64_t : print_i64,\ - float : print_float,\ - double : print_double,\ - const char* : print_string,\ - const OOPetrisAdditionalInformationField* const* : print_vector)(val) -// clang-format on - - -void print_field(const OOPetrisAdditionalInformationField* const field) { - switch (oopetris_additional_information_field_get_type(field)) { - case OOPetrisAdditionalInformationType_String: - PRINT_VALUE(oopetris_additional_information_field_get_string(field)); - return; - case OOPetrisAdditionalInformationType_Float: - PRINT_VALUE(oopetris_additional_information_field_get_float(field)); - return; - case OOPetrisAdditionalInformationType_Double: - PRINT_VALUE(oopetris_additional_information_field_get_double(field)); - return; - case OOPetrisAdditionalInformationType_Bool: - PRINT_VALUE(oopetris_additional_information_field_get_bool(field)); - return; - case OOPetrisAdditionalInformationType_U8: - PRINT_VALUE(oopetris_additional_information_field_get_u8(field)); - return; - case OOPetrisAdditionalInformationType_I8: - PRINT_VALUE(oopetris_additional_information_field_get_i8(field)); - return; - case OOPetrisAdditionalInformationType_U32: - PRINT_VALUE(oopetris_additional_information_field_get_u32(field)); - return; - case OOPetrisAdditionalInformationType_I32: - PRINT_VALUE(oopetris_additional_information_field_get_i32(field)); - return; - case OOPetrisAdditionalInformationType_U64: - PRINT_VALUE(oopetris_additional_information_field_get_u64(field)); - return; - case OOPetrisAdditionalInformationType_I64: - PRINT_VALUE(oopetris_additional_information_field_get_i64(field)); - return; - case OOPetrisAdditionalInformationType_Vector: - PRINT_VALUE(oopetris_additional_information_field_get_vector(field)); - return; - - default: - assert(false && "UNREACHABLE"); - return; - } -} - -void print_tetrion_header(const OOPetrisTetrionHeader* const header) { - - printf("seed: %" PRIu64 "\tstarting_level: %" PRIu32 "\n", header->seed, header->starting_level); -} - -const char* input_event_string(OOPetrisInputEvent event) { - switch (event) { - case OOPetrisInputEvent_RotateLeftPressed: - return "RotateLeftPressed"; - case OOPetrisInputEvent_RotateRightPressed: - return "RotateRightPressed"; - case OOPetrisInputEvent_MoveLeftPressed: - return "MoveLeftPressed"; - case OOPetrisInputEvent_MoveRightPressed: - return "MoveRightPressed"; - case OOPetrisInputEvent_MoveDownPressed: - return "MoveDownPressed"; - case OOPetrisInputEvent_DropPressed: - return "DropPressed"; - case OOPetrisInputEvent_HoldPressed: - return "HoldPressed"; - case OOPetrisInputEvent_RotateLeftReleased: - return "RotateLeftReleased"; - case OOPetrisInputEvent_RotateRightReleased: - return "RotateRightReleased"; - case OOPetrisInputEvent_MoveLeftReleased: - return "MoveLeftReleased"; - case OOPetrisInputEvent_MoveRightReleased: - return "MoveRightReleased"; - case OOPetrisInputEvent_MoveDownReleased: - return "MoveDownReleased"; - case OOPetrisInputEvent_DropReleased: - return "DropReleased"; - case OOPetrisInputEvent_HoldReleased: - return "HoldReleased"; - default: - assert(false && "UNREACHABLE"); - return ""; - } -} - -void print_record(const OOPetrisTetrionRecord* const record) { - printf("simulation_step_index: %" PRIu64 "\ttetrion_index: %" PRIu8 "\tevent: %s\n", record->simulation_step_index, - record->tetrion_index, input_event_string(record->event)); -} - -void print_mino_stack(const OOPetrisMino* const stack) { - - OOPetrisGridProperties* properties = oopetris_get_grid_properties(); - - if (properties == NULL) { - return; - } - - const size_t buffer_size = properties->height * properties->width; - - char* buffer = malloc(buffer_size); - - if (buffer == NULL) { - return; - } - - memset(buffer, '.', buffer_size); - - for (size_t i = 0; i < stbds_arrlenu(stack); ++i) { - const OOpetrisMinoPosition position = stack[i].position; - buffer[position.x + (position.y * properties->width)] = '#'; - } - - - for (size_t y = 0; y < properties->height; ++y) { - int result = write(STDOUT_FILENO, buffer + (y * properties->width), properties->width); - if (result < 0) { - free(buffer); - return; - } - printf("\n"); - } - - free(buffer); - oopetris_free_grid_properties(&properties); -} - -void print_snapshot(const OOpetrisTetrionSnapshot* const snapshot) { - printf("\tsimulation_step_index: %" PRIu64 "\ttetrion_index: %" PRIu8 "\n", snapshot->simulation_step_index, - snapshot->tetrion_index); - - printf("\tlevel: %" PRIu32 "\tscore: %" PRIu64 "\tlines_cleared: %" PRIu32 "\n", snapshot->level, snapshot->score, - snapshot->lines_cleared); - - print_mino_stack(snapshot->mino_stack); -} - - -void print_recording_information(const OOPetrisRecordingInformation* const information) { - - printf("Version: %d\n\n", information->version); - printf("Additional Information:\n"); - - const char** keys = oopetris_additional_information_get_keys(information->information); - - for (size_t i = 0; i < stbds_arrlenu(keys); ++i) { - printf("\t%s: ", keys[i]); - print_field(oopetris_additional_information_get_field(information->information, keys[i])); - printf("\n"); - } - printf("\n"); - - oopetris_additional_information_keys_free(&keys); - - printf("Headers:\n"); - - for (size_t i = 0; i < stbds_arrlenu(information->tetrion_headers); ++i) { - printf("\t"); - print_tetrion_header(&(information->tetrion_headers[i])); - } - printf("\n"); - - printf("Records:\n"); - - for (size_t i = 0; i < stbds_arrlenu(information->records); ++i) { - printf("\t"); - print_record(&(information->records[i])); - } - printf("\n"); - - printf("Snapshots:\n"); - - for (size_t i = 0; i < stbds_arrlenu(information->snapshots); ++i) { - print_snapshot(&(information->snapshots[i])); - } - printf("\n"); -} - -int main(int argc, char** argv) { - - - if (argc != 2) { - fprintf(stderr, "usage: %s \n", argv[0]); - return EXIT_FAILURE; - } - - const char* file = argv[1]; - - const bool is_recordings_file = oopetris_is_recording_file(file); - - if (!is_recordings_file) { - fprintf(stderr, "Input file is no recordings file!\n"); - return EXIT_FAILURE; - } - - OOPetrisRecordingReturnValue* return_value = oopetris_get_recording_information(file); - - const bool is_error = oopetris_is_error(return_value); - - if (is_error) { - const char* error = oopetris_get_error(return_value); - fprintf(stderr, "An error occured: %s\n", error); - oopetris_free_recording_value_whole(&return_value); - return EXIT_FAILURE; - } - - OOPetrisRecordingInformation* information = oopetris_get_information(return_value); - - oopetris_free_recording_value_only(&return_value); - - print_recording_information(information); - - oopetris_free_recording_information(&information); - - return EXIT_SUCCESS; -} diff --git a/wrapper/c/example/meson.build b/wrapper/c/example/meson.build deleted file mode 100644 index 99e22341..00000000 --- a/wrapper/c/example/meson.build +++ /dev/null @@ -1,13 +0,0 @@ - -example = executable( - 'example', - files( - 'main.c', - ), - dependencies: [liboopetris_c_wrapper_dep], - override_options: { - 'warning_level': '3', - 'werror': true, - 'b_coverage': false, - }, -) diff --git a/wrapper/c/meson.build b/wrapper/c/meson.build deleted file mode 100644 index 20f5fa21..00000000 --- a/wrapper/c/meson.build +++ /dev/null @@ -1,63 +0,0 @@ -project( - 'oopetris_c_wrapper', - 'cpp', - 'c', - meson_version: '>=1.3.0', - default_options: { - 'buildtype': 'debug', - 'optimization': '3', - 'strip': true, - 'cpp_std': ['c++23', 'c++latest', 'vc++latest', 'c++20'], - 'b_ndebug': 'if-release', - - }, - version: '0.5.6', -) - -deps = [] - -deps += dependency('oopetris-recordings') - -src_files = [] - -subdir('src') - -src_files - -liboopetris_c_wrapper = library( - 'oopetris_c_wrapper', - src_files, - dependencies: deps, - override_options: { - 'warning_level': '3', - 'werror': true, - }, - version: meson.project_version(), - install: true, -) - -liboopetris_c_wrapper_dep = declare_dependency( - link_with: liboopetris_c_wrapper, - dependencies: deps, - version: meson.project_version(), - include_directories: include_directories('src'), -) -meson.override_dependency('liboopetris-c-wrapper', liboopetris_c_wrapper_dep) - -# generate pkgconfig files -pkg = import('pkgconfig') -pkg.generate( - liboopetris_c_wrapper, - description: 'The C Wrapper library for oopetris', - name: 'oopetris-c-wrapper', - filebase: 'oopetris-c-wrapper', - subdirs: 'oopetris', -) - -if get_option('tests') - subdir('tests') -endif - -if get_option('example') - subdir('example') -endif diff --git a/wrapper/c/meson.options b/wrapper/c/meson.options deleted file mode 100644 index a1a48187..00000000 --- a/wrapper/c/meson.options +++ /dev/null @@ -1,13 +0,0 @@ -option( - 'tests', - type: 'boolean', - value: false, - description: 'whether or not tests should be built', -) - -option( - 'example', - type: 'boolean', - value: false, - description: 'whether or not the example should be built', -) diff --git a/wrapper/c/src/meson.build b/wrapper/c/src/meson.build deleted file mode 100644 index 6200b52b..00000000 --- a/wrapper/c/src/meson.build +++ /dev/null @@ -1,16 +0,0 @@ -include_dir = get_option('prefix') / get_option('includedir') -c_wrapper_include_dir = include_dir / 'oopetris' - -install_headers( - files('oopetris_wrapper.h'), - install_dir: c_wrapper_include_dir, - preserve_path: true, -) - -install_headers( - files('thirdparty/stb_ds.h'), - install_dir: c_wrapper_include_dir / 'thirdparty', - preserve_path: true, -) - -src_files += files('wrapper.cpp') diff --git a/wrapper/c/src/oopetris_wrapper.h b/wrapper/c/src/oopetris_wrapper.h deleted file mode 100644 index c3aba062..00000000 --- a/wrapper/c/src/oopetris_wrapper.h +++ /dev/null @@ -1,209 +0,0 @@ - - -#pragma once - -// assure we only include the header and with correct defines -#ifndef STBDS_NO_SHORT_NAMES -#define STBDS_NO_SHORT_NAMES -#endif -#ifdef STB_DS_IMPLEMENTATION -#undef STB_DS_IMPLEMENTATION -#endif -#include "./thirdparty/stb_ds.h" - - -#ifdef __cplusplus -extern "C" { -#endif -#include -#include - -/** - * @brief this determines if a file (may be nonexistent) is a recording file, it is not guaranteed, tat a consecutive call to oopetris_get_recording_information never fails, if this returns true, but it's highly unliekely, and this is faster, as it doesn't do as much work - * - * @param file_path The FilePath of the potential recording file - * @return bool - */ -bool oopetris_is_recording_file(const char* file_path); - -// opaque type -typedef struct OOPetrisAdditionalInformationImpl OOPetrisAdditionalInformation; - -// opaque type -typedef struct OOPetrisAdditionalInformationFieldImpl OOPetrisAdditionalInformationField; - -const char** oopetris_additional_information_get_keys(OOPetrisAdditionalInformation* information); - - -void oopetris_additional_information_keys_free(const char*** keys); - -const OOPetrisAdditionalInformationField* -oopetris_additional_information_get_field(OOPetrisAdditionalInformation* information, const char* key); - - -//TODO(): once we only support C23 (which also the compiled lib has to support ), add underlying enum type uint8_t -typedef enum { - OOPetrisAdditionalInformationType_String = 0, - OOPetrisAdditionalInformationType_Float, - OOPetrisAdditionalInformationType_Double, - OOPetrisAdditionalInformationType_Bool, - OOPetrisAdditionalInformationType_U8, - OOPetrisAdditionalInformationType_I8, - OOPetrisAdditionalInformationType_U32, - OOPetrisAdditionalInformationType_I32, - OOPetrisAdditionalInformationType_U64, - OOPetrisAdditionalInformationType_I64, - OOPetrisAdditionalInformationType_Vector, -} OOPetrisAdditionalInformationType; - - -OOPetrisAdditionalInformationType oopetris_additional_information_field_get_type( - const OOPetrisAdditionalInformationField* const field -); - -const char* oopetris_additional_information_field_get_string(const OOPetrisAdditionalInformationField* const field); - -float oopetris_additional_information_field_get_float(const OOPetrisAdditionalInformationField* const field); - -double oopetris_additional_information_field_get_double(const OOPetrisAdditionalInformationField* const field); - -bool oopetris_additional_information_field_get_bool(const OOPetrisAdditionalInformationField* const field); - -uint8_t oopetris_additional_information_field_get_u8(const OOPetrisAdditionalInformationField* const field); - -int8_t oopetris_additional_information_field_get_i8(const OOPetrisAdditionalInformationField* const field); - -uint32_t oopetris_additional_information_field_get_u32(const OOPetrisAdditionalInformationField* const field); - - -int32_t oopetris_additional_information_field_get_i32(const OOPetrisAdditionalInformationField* const field); - -uint64_t oopetris_additional_information_field_get_u64(const OOPetrisAdditionalInformationField* const field); - -int64_t oopetris_additional_information_field_get_i64(const OOPetrisAdditionalInformationField* const field); - -const OOPetrisAdditionalInformationField* const* oopetris_additional_information_field_get_vector( - const OOPetrisAdditionalInformationField* const field -); - - -//TODO(): once we only support C23 (which also the compiled lib has to support ), add underlying enum type uint8_t -typedef enum { - OOPetrisInputEvent_RotateLeftPressed = 0, - OOPetrisInputEvent_RotateRightPressed, - OOPetrisInputEvent_MoveLeftPressed, - OOPetrisInputEvent_MoveRightPressed, - OOPetrisInputEvent_MoveDownPressed, - OOPetrisInputEvent_DropPressed, - OOPetrisInputEvent_HoldPressed, - OOPetrisInputEvent_RotateLeftReleased, - OOPetrisInputEvent_RotateRightReleased, - OOPetrisInputEvent_MoveLeftReleased, - OOPetrisInputEvent_MoveRightReleased, - OOPetrisInputEvent_MoveDownReleased, - OOPetrisInputEvent_DropReleased, - OOPetrisInputEvent_HoldReleased, -} OOPetrisInputEvent; - -typedef struct { - uint64_t simulation_step_index; - OOPetrisInputEvent event; - uint8_t tetrion_index; -} OOPetrisTetrionRecord; - -typedef struct { - uint8_t x; - uint8_t y; -} OOpetrisMinoPosition; - - -//TODO(): once we only support C23 (which also the compiled lib has to support ), add underlying enum type uint8_t -typedef enum { - OOPetrisTetrominoType_I = 0, - OOPetrisTetrominoType_J, - OOPetrisTetrominoType_L, - OOPetrisTetrominoType_O, - OOPetrisTetrominoType_S, - OOPetrisTetrominoType_T, - OOPetrisTetrominoType_Z, -} OOPetrisTetrominoType; - -typedef struct { - OOpetrisMinoPosition position; - OOPetrisTetrominoType type; -} OOPetrisMino; - -typedef struct { - uint32_t level; - OOPetrisMino* mino_stack; - uint64_t score; - uint64_t simulation_step_index; - uint32_t lines_cleared; - uint8_t tetrion_index; -} OOpetrisTetrionSnapshot; - -typedef struct { - uint64_t seed; - uint32_t starting_level; -} OOPetrisTetrionHeader; - - -/** - * @brief non opaque type, fields can be safely accessed, except they are opaque structs again - * The values that are pointers are dynamic array, as defined by stb_ds.h, see tests for usage example, an exception is the opaque type OOPetrisAdditionalInformation, you have to use some helper functions, to get access to it, it is a object / dict with dynamic types - * - */ -typedef struct { - OOPetrisAdditionalInformation* information; //NOT AN ARRAY - OOPetrisTetrionRecord* records; - OOpetrisTetrionSnapshot* snapshots; - OOPetrisTetrionHeader* tetrion_headers; - uint32_t version; -} OOPetrisRecordingInformation; - - -// opaque type -typedef struct OOPetrisRecordingReturnValueImpl OOPetrisRecordingReturnValue; - - -/** - * @brief Retrieve the Recording information of a file, returns an opaque struct pointer, that may be null and you have to use oopetris_is_error and similar functions to retrieve the internal value - * - * @param file_path The FilePath of the recording file - * @return OOPetrisRecordingReturnValue* - */ -OOPetrisRecordingReturnValue* oopetris_get_recording_information(const char* file_path); - -/** - * @brief Determine if the given OOPetrisRecordingReturnValue* is an error or not, after calling this you can call either oopetris_get_error or oopetris_get_information. This has to be freed later, but pay attention, which free function you use, read more in the description of oopetris_free_recording_value - * - * @param value The return value of oopetris_get_recording_information - * @return bool - */ -bool oopetris_is_error(OOPetrisRecordingReturnValue* value); - -const char* oopetris_get_error(OOPetrisRecordingReturnValue* value); - -OOPetrisRecordingInformation* oopetris_get_information(OOPetrisRecordingReturnValue* value); - -void oopetris_free_recording_information(OOPetrisRecordingInformation** information); - -void oopetris_free_recording_value_only(OOPetrisRecordingReturnValue** information); - -void oopetris_free_recording_value_whole(OOPetrisRecordingReturnValue** information); - -const char* oopetris_get_lib_version(void); - -typedef struct { - uint32_t height; - uint32_t width; -} OOPetrisGridProperties; - -OOPetrisGridProperties* oopetris_get_grid_properties(void); - -void oopetris_free_grid_properties(OOPetrisGridProperties** properties); - - -#ifdef __cplusplus -} -#endif diff --git a/wrapper/c/src/thirdparty/stb_ds.h b/wrapper/c/src/thirdparty/stb_ds.h deleted file mode 100644 index 589e31c9..00000000 --- a/wrapper/c/src/thirdparty/stb_ds.h +++ /dev/null @@ -1,1903 +0,0 @@ -/* stb_ds.h - v0.67 - public domain data structures - Sean Barrett 2019 - - This is a single-header-file library that provides easy-to-use - dynamic arrays and hash tables for C (also works in C++). - - For a gentle introduction: - http://nothings.org/stb_ds - - To use this library, do this in *one* C or C++ file: - #define STB_DS_IMPLEMENTATION - #include "stb_ds.h" - -TABLE OF CONTENTS - - Table of Contents - Compile-time options - License - Documentation - Notes - Notes - Dynamic arrays - Notes - Hash maps - Credits - -COMPILE-TIME OPTIONS - - #define STBDS_NO_SHORT_NAMES - - This flag needs to be set globally. - - By default stb_ds exposes shorter function names that are not qualified - with the "stbds_" prefix. If these names conflict with the names in your - code, define this flag. - - #define STBDS_SIPHASH_2_4 - - This flag only needs to be set in the file containing #define STB_DS_IMPLEMENTATION. - - By default stb_ds.h hashes using a weaker variant of SipHash and a custom hash for - 4- and 8-byte keys. On 64-bit platforms, you can define the above flag to force - stb_ds.h to use specification-compliant SipHash-2-4 for all keys. Doing so makes - hash table insertion about 20% slower on 4- and 8-byte keys, 5% slower on - 64-byte keys, and 10% slower on 256-byte keys on my test computer. - - #define STBDS_REALLOC(context,ptr,size) better_realloc - #define STBDS_FREE(context,ptr) better_free - - These defines only need to be set in the file containing #define STB_DS_IMPLEMENTATION. - - By default stb_ds uses stdlib realloc() and free() for memory management. You can - substitute your own functions instead by defining these symbols. You must either - define both, or neither. Note that at the moment, 'context' will always be NULL. - @TODO add an array/hash initialization function that takes a memory context pointer. - - #define STBDS_UNIT_TESTS - - Defines a function stbds_unit_tests() that checks the functioning of the data structures. - - Note that on older versions of gcc (e.g. 5.x.x) you may need to build with '-std=c++0x' - (or equivalentally '-std=c++11') when using anonymous structures as seen on the web - page or in STBDS_UNIT_TESTS. - -LICENSE - - Placed in the public domain and also MIT licensed. - See end of file for detailed license information. - -DOCUMENTATION - - Dynamic Arrays - - Non-function interface: - - Declare an empty dynamic array of type T - T* foo = NULL; - - Access the i'th item of a dynamic array 'foo' of type T, T* foo: - foo[i] - - Functions (actually macros) - - arrfree: - void arrfree(T*); - Frees the array. - - arrlen: - ptrdiff_t arrlen(T*); - Returns the number of elements in the array. - - arrlenu: - size_t arrlenu(T*); - Returns the number of elements in the array as an unsigned type. - - arrpop: - T arrpop(T* a) - Removes the final element of the array and returns it. - - arrput: - T arrput(T* a, T b); - Appends the item b to the end of array a. Returns b. - - arrins: - T arrins(T* a, int p, T b); - Inserts the item b into the middle of array a, into a[p], - moving the rest of the array over. Returns b. - - arrinsn: - void arrinsn(T* a, int p, int n); - Inserts n uninitialized items into array a starting at a[p], - moving the rest of the array over. - - arraddnptr: - T* arraddnptr(T* a, int n) - Appends n uninitialized items onto array at the end. - Returns a pointer to the first uninitialized item added. - - arraddnindex: - size_t arraddnindex(T* a, int n) - Appends n uninitialized items onto array at the end. - Returns the index of the first uninitialized item added. - - arrdel: - void arrdel(T* a, int p); - Deletes the element at a[p], moving the rest of the array over. - - arrdeln: - void arrdeln(T* a, int p, int n); - Deletes n elements starting at a[p], moving the rest of the array over. - - arrdelswap: - void arrdelswap(T* a, int p); - Deletes the element at a[p], replacing it with the element from - the end of the array. O(1) performance. - - arrsetlen: - void arrsetlen(T* a, int n); - Changes the length of the array to n. Allocates uninitialized - slots at the end if necessary. - - arrsetcap: - size_t arrsetcap(T* a, int n); - Sets the length of allocated storage to at least n. It will not - change the length of the array. - - arrcap: - size_t arrcap(T* a); - Returns the number of total elements the array can contain without - needing to be reallocated. - - Hash maps & String hash maps - - Given T is a structure type: struct { TK key; TV value; }. Note that some - functions do not require TV value and can have other fields. For string - hash maps, TK must be 'char *'. - - Special interface: - - stbds_rand_seed: - void stbds_rand_seed(size_t seed); - For security against adversarially chosen data, you should seed the - library with a strong random number. Or at least seed it with time(). - - stbds_hash_string: - size_t stbds_hash_string(char *str, size_t seed); - Returns a hash value for a string. - - stbds_hash_bytes: - size_t stbds_hash_bytes(void *p, size_t len, size_t seed); - These functions hash an arbitrary number of bytes. The function - uses a custom hash for 4- and 8-byte data, and a weakened version - of SipHash for everything else. On 64-bit platforms you can get - specification-compliant SipHash-2-4 on all data by defining - STBDS_SIPHASH_2_4, at a significant cost in speed. - - Non-function interface: - - Declare an empty hash map of type T - T* foo = NULL; - - Access the i'th entry in a hash table T* foo: - foo[i] - - Function interface (actually macros): - - hmfree - shfree - void hmfree(T*); - void shfree(T*); - Frees the hashmap and sets the pointer to NULL. - - hmlen - shlen - ptrdiff_t hmlen(T*) - ptrdiff_t shlen(T*) - Returns the number of elements in the hashmap. - - hmlenu - shlenu - size_t hmlenu(T*) - size_t shlenu(T*) - Returns the number of elements in the hashmap. - - hmgeti - shgeti - hmgeti_ts - ptrdiff_t hmgeti(T*, TK key) - ptrdiff_t shgeti(T*, char* key) - ptrdiff_t hmgeti_ts(T*, TK key, ptrdiff_t tempvar) - Returns the index in the hashmap which has the key 'key', or -1 - if the key is not present. - - hmget - hmget_ts - shget - TV hmget(T*, TK key) - TV shget(T*, char* key) - TV hmget_ts(T*, TK key, ptrdiff_t tempvar) - Returns the value corresponding to 'key' in the hashmap. - The structure must have a 'value' field - - hmgets - shgets - T hmgets(T*, TK key) - T shgets(T*, char* key) - Returns the structure corresponding to 'key' in the hashmap. - - hmgetp - shgetp - hmgetp_ts - hmgetp_null - shgetp_null - T* hmgetp(T*, TK key) - T* shgetp(T*, char* key) - T* hmgetp_ts(T*, TK key, ptrdiff_t tempvar) - T* hmgetp_null(T*, TK key) - T* shgetp_null(T*, char *key) - Returns a pointer to the structure corresponding to 'key' in - the hashmap. Functions ending in "_null" return NULL if the key - is not present in the hashmap; the others return a pointer to a - structure holding the default value (but not the searched-for key). - - hmdefault - shdefault - TV hmdefault(T*, TV value) - TV shdefault(T*, TV value) - Sets the default value for the hashmap, the value which will be - returned by hmget/shget if the key is not present. - - hmdefaults - shdefaults - TV hmdefaults(T*, T item) - TV shdefaults(T*, T item) - Sets the default struct for the hashmap, the contents which will be - returned by hmgets/shgets if the key is not present. - - hmput - shput - TV hmput(T*, TK key, TV value) - TV shput(T*, char* key, TV value) - Inserts a pair into the hashmap. If the key is already - present in the hashmap, updates its value. - - hmputs - shputs - T hmputs(T*, T item) - T shputs(T*, T item) - Inserts a struct with T.key into the hashmap. If the struct is already - present in the hashmap, updates it. - - hmdel - shdel - int hmdel(T*, TK key) - int shdel(T*, char* key) - If 'key' is in the hashmap, deletes its entry and returns 1. - Otherwise returns 0. - - Function interface (actually macros) for strings only: - - sh_new_strdup - void sh_new_strdup(T*); - Overwrites the existing pointer with a newly allocated - string hashmap which will automatically allocate and free - each string key using realloc/free - - sh_new_arena - void sh_new_arena(T*); - Overwrites the existing pointer with a newly allocated - string hashmap which will automatically allocate each string - key to a string arena. Every string key ever used by this - hash table remains in the arena until the arena is freed. - Additionally, any key which is deleted and reinserted will - be allocated multiple times in the string arena. - -NOTES - - * These data structures are realloc'd when they grow, and the macro - "functions" write to the provided pointer. This means: (a) the pointer - must be an lvalue, and (b) the pointer to the data structure is not - stable, and you must maintain it the same as you would a realloc'd - pointer. For example, if you pass a pointer to a dynamic array to a - function which updates it, the function must return back the new - pointer to the caller. This is the price of trying to do this in C. - - * The following are the only functions that are thread-safe on a single data - structure, i.e. can be run in multiple threads simultaneously on the same - data structure - hmlen shlen - hmlenu shlenu - hmget_ts shget_ts - hmgeti_ts shgeti_ts - hmgets_ts shgets_ts - - * You iterate over the contents of a dynamic array and a hashmap in exactly - the same way, using arrlen/hmlen/shlen: - - for (i=0; i < arrlen(foo); ++i) - ... foo[i] ... - - * All operations except arrins/arrdel are O(1) amortized, but individual - operations can be slow, so these data structures may not be suitable - for real time use. Dynamic arrays double in capacity as needed, so - elements are copied an average of once. Hash tables double/halve - their size as needed, with appropriate hysteresis to maintain O(1) - performance. - -NOTES - DYNAMIC ARRAY - - * If you know how long a dynamic array is going to be in advance, you can avoid - extra memory allocations by using arrsetlen to allocate it to that length in - advance and use foo[n] while filling it out, or arrsetcap to allocate the memory - for that length and use arrput/arrpush as normal. - - * Unlike some other versions of the dynamic array, this version should - be safe to use with strict-aliasing optimizations. - -NOTES - HASH MAP - - * For compilers other than GCC and clang (e.g. Visual Studio), for hmput/hmget/hmdel - and variants, the key must be an lvalue (so the macro can take the address of it). - Extensions are used that eliminate this requirement if you're using C99 and later - in GCC or clang, or if you're using C++ in GCC. But note that this can make your - code less portable. - - * To test for presence of a key in a hashmap, just do 'hmgeti(foo,key) >= 0'. - - * The iteration order of your data in the hashmap is determined solely by the - order of insertions and deletions. In particular, if you never delete, new - keys are always added at the end of the array. This will be consistent - across all platforms and versions of the library. However, you should not - attempt to serialize the internal hash table, as the hash is not consistent - between different platforms, and may change with future versions of the library. - - * Use sh_new_arena() for string hashmaps that you never delete from. Initialize - with NULL if you're managing the memory for your strings, or your strings are - never freed (at least until the hashmap is freed). Otherwise, use sh_new_strdup(). - @TODO: make an arena variant that garbage collects the strings with a trivial - copy collector into a new arena whenever the table shrinks / rebuilds. Since - current arena recommendation is to only use arena if it never deletes, then - this can just replace current arena implementation. - - * If adversarial input is a serious concern and you're on a 64-bit platform, - enable STBDS_SIPHASH_2_4 (see the 'Compile-time options' section), and pass - a strong random number to stbds_rand_seed. - - * The default value for the hash table is stored in foo[-1], so if you - use code like 'hmget(T,k)->value = 5' you can accidentally overwrite - the value stored by hmdefault if 'k' is not present. - -CREDITS - - Sean Barrett -- library, idea for dynamic array API/implementation - Per Vognsen -- idea for hash table API/implementation - Rafael Sachetto -- arrpop() - github:HeroicKatora -- arraddn() reworking - - Bugfixes: - Andy Durdin - Shane Liesegang - Vinh Truong - Andreas Molzer - github:hashitaku - github:srdjanstipic - Macoy Madson - Andreas Vennstrom - Tobias Mansfield-Williams -*/ - -#ifdef STBDS_UNIT_TESTS -#define _CRT_SECURE_NO_WARNINGS -#endif - -#ifndef INCLUDE_STB_DS_H -#define INCLUDE_STB_DS_H - -#include -#include - -#ifndef STBDS_NO_SHORT_NAMES -#define arrlen stbds_arrlen -#define arrlenu stbds_arrlenu -#define arrput stbds_arrput -#define arrpush stbds_arrput -#define arrpop stbds_arrpop -#define arrfree stbds_arrfree -#define arraddn stbds_arraddn // deprecated, use one of the following instead: -#define arraddnptr stbds_arraddnptr -#define arraddnindex stbds_arraddnindex -#define arrsetlen stbds_arrsetlen -#define arrlast stbds_arrlast -#define arrins stbds_arrins -#define arrinsn stbds_arrinsn -#define arrdel stbds_arrdel -#define arrdeln stbds_arrdeln -#define arrdelswap stbds_arrdelswap -#define arrcap stbds_arrcap -#define arrsetcap stbds_arrsetcap - -#define hmput stbds_hmput -#define hmputs stbds_hmputs -#define hmget stbds_hmget -#define hmget_ts stbds_hmget_ts -#define hmgets stbds_hmgets -#define hmgetp stbds_hmgetp -#define hmgetp_ts stbds_hmgetp_ts -#define hmgetp_null stbds_hmgetp_null -#define hmgeti stbds_hmgeti -#define hmgeti_ts stbds_hmgeti_ts -#define hmdel stbds_hmdel -#define hmlen stbds_hmlen -#define hmlenu stbds_hmlenu -#define hmfree stbds_hmfree -#define hmdefault stbds_hmdefault -#define hmdefaults stbds_hmdefaults - -#define shput stbds_shput -#define shputi stbds_shputi -#define shputs stbds_shputs -#define shget stbds_shget -#define shgeti stbds_shgeti -#define shgets stbds_shgets -#define shgetp stbds_shgetp -#define shgetp_null stbds_shgetp_null -#define shdel stbds_shdel -#define shlen stbds_shlen -#define shlenu stbds_shlenu -#define shfree stbds_shfree -#define shdefault stbds_shdefault -#define shdefaults stbds_shdefaults -#define sh_new_arena stbds_sh_new_arena -#define sh_new_strdup stbds_sh_new_strdup - -#define stralloc stbds_stralloc -#define strreset stbds_strreset -#endif - -#if defined(STBDS_REALLOC) && !defined(STBDS_FREE) || !defined(STBDS_REALLOC) && defined(STBDS_FREE) -#error "You must define both STBDS_REALLOC and STBDS_FREE, or neither." -#endif -#if !defined(STBDS_REALLOC) && !defined(STBDS_FREE) -#include -#define STBDS_REALLOC(c,p,s) realloc(p,s) -#define STBDS_FREE(c,p) free(p) -#endif - -#ifdef _MSC_VER -#define STBDS_NOTUSED(v) (void)(v) -#else -#define STBDS_NOTUSED(v) (void)sizeof(v) -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -// for security against attackers, seed the library with a random number, at least time() but stronger is better -extern void stbds_rand_seed(size_t seed); - -// these are the hash functions used internally if you want to test them or use them for other purposes -extern size_t stbds_hash_bytes(void *p, size_t len, size_t seed); -extern size_t stbds_hash_string(char *str, size_t seed); - -// this is a simple string arena allocator, initialize with e.g. 'stbds_string_arena my_arena={0}'. -typedef struct stbds_string_arena stbds_string_arena; -extern char * stbds_stralloc(stbds_string_arena *a, char *str); -extern void stbds_strreset(stbds_string_arena *a); - -// have to #define STBDS_UNIT_TESTS to call this -extern void stbds_unit_tests(void); - -/////////////// -// -// Everything below here is implementation details -// - -extern void * stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap); -extern void stbds_arrfreef(void *a); -extern void stbds_hmfree_func(void *p, size_t elemsize); -extern void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode); -extern void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode); -extern void * stbds_hmput_default(void *a, size_t elemsize); -extern void * stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode); -extern void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode); -extern void * stbds_shmode_func(size_t elemsize, int mode); - -#ifdef __cplusplus -} -#endif - -#if defined(__GNUC__) || defined(__clang__) -#define STBDS_HAS_TYPEOF -#ifdef __cplusplus -//#define STBDS_HAS_LITERAL_ARRAY // this is currently broken for clang -#endif -#endif - -#if !defined(__cplusplus) -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#define STBDS_HAS_LITERAL_ARRAY -#endif -#endif - -// this macro takes the address of the argument, but on gcc/clang can accept rvalues -#if defined(STBDS_HAS_LITERAL_ARRAY) && defined(STBDS_HAS_TYPEOF) - #if __clang__ - #define STBDS_ADDRESSOF(typevar, value) ((__typeof__(typevar)[1]){value}) // literal array decays to pointer to value - #else - #define STBDS_ADDRESSOF(typevar, value) ((typeof(typevar)[1]){value}) // literal array decays to pointer to value - #endif -#else -#define STBDS_ADDRESSOF(typevar, value) &(value) -#endif - -#define STBDS_OFFSETOF(var,field) ((char *) &(var)->field - (char *) (var)) - -#define stbds_header(t) ((stbds_array_header *) (t) - 1) -#define stbds_temp(t) stbds_header(t)->temp -#define stbds_temp_key(t) (*(char **) stbds_header(t)->hash_table) - -#define stbds_arrsetcap(a,n) (stbds_arrgrow(a,0,n)) -#define stbds_arrsetlen(a,n) ((stbds_arrcap(a) < (size_t) (n) ? stbds_arrsetcap((a),(size_t)(n)),0 : 0), (a) ? stbds_header(a)->length = (size_t) (n) : 0) -#define stbds_arrcap(a) ((a) ? stbds_header(a)->capacity : 0) -#define stbds_arrlen(a) ((a) ? (ptrdiff_t) stbds_header(a)->length : 0) -#define stbds_arrlenu(a) ((a) ? stbds_header(a)->length : 0) -#define stbds_arrput(a,v) (stbds_arrmaybegrow(a,1), (a)[stbds_header(a)->length++] = (v)) -#define stbds_arrpush stbds_arrput // synonym -#define stbds_arrpop(a) (stbds_header(a)->length--, (a)[stbds_header(a)->length]) -#define stbds_arraddn(a,n) ((void)(stbds_arraddnindex(a, n))) // deprecated, use one of the following instead: -#define stbds_arraddnptr(a,n) (stbds_arrmaybegrow(a,n), (n) ? (stbds_header(a)->length += (n), &(a)[stbds_header(a)->length-(n)]) : (a)) -#define stbds_arraddnindex(a,n)(stbds_arrmaybegrow(a,n), (n) ? (stbds_header(a)->length += (n), stbds_header(a)->length-(n)) : stbds_arrlen(a)) -#define stbds_arraddnoff stbds_arraddnindex -#define stbds_arrlast(a) ((a)[stbds_header(a)->length-1]) -#define stbds_arrfree(a) ((void) ((a) ? STBDS_FREE(NULL,stbds_header(a)) : (void)0), (a)=NULL) -#define stbds_arrdel(a,i) stbds_arrdeln(a,i,1) -#define stbds_arrdeln(a,i,n) (memmove(&(a)[i], &(a)[(i)+(n)], sizeof *(a) * (stbds_header(a)->length-(n)-(i))), stbds_header(a)->length -= (n)) -#define stbds_arrdelswap(a,i) ((a)[i] = stbds_arrlast(a), stbds_header(a)->length -= 1) -#define stbds_arrinsn(a,i,n) (stbds_arraddn((a),(n)), memmove(&(a)[(i)+(n)], &(a)[i], sizeof *(a) * (stbds_header(a)->length-(n)-(i)))) -#define stbds_arrins(a,i,v) (stbds_arrinsn((a),(i),1), (a)[i]=(v)) - -#define stbds_arrmaybegrow(a,n) ((!(a) || stbds_header(a)->length + (n) > stbds_header(a)->capacity) \ - ? (stbds_arrgrow(a,n,0),0) : 0) - -#define stbds_arrgrow(a,b,c) ((a) = stbds_arrgrowf_wrapper((a), sizeof *(a), (b), (c))) - -#define stbds_hmput(t, k, v) \ - ((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, 0), \ - (t)[stbds_temp((t)-1)].key = (k), \ - (t)[stbds_temp((t)-1)].value = (v)) - -#define stbds_hmputs(t, s) \ - ((t) = stbds_hmput_key_wrapper((t), sizeof *(t), &(s).key, sizeof (s).key, STBDS_HM_BINARY), \ - (t)[stbds_temp((t)-1)] = (s)) - -#define stbds_hmgeti(t,k) \ - ((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, STBDS_HM_BINARY), \ - stbds_temp((t)-1)) - -#define stbds_hmgeti_ts(t,k,temp) \ - ((t) = stbds_hmget_key_ts_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, &(temp), STBDS_HM_BINARY), \ - (temp)) - -#define stbds_hmgetp(t, k) \ - ((void) stbds_hmgeti(t,k), &(t)[stbds_temp((t)-1)]) - -#define stbds_hmgetp_ts(t, k, temp) \ - ((void) stbds_hmgeti_ts(t,k,temp), &(t)[temp]) - -#define stbds_hmdel(t,k) \ - (((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, STBDS_OFFSETOF((t),key), STBDS_HM_BINARY)),(t)?stbds_temp((t)-1):0) - -#define stbds_hmdefault(t, v) \ - ((t) = stbds_hmput_default_wrapper((t), sizeof *(t)), (t)[-1].value = (v)) - -#define stbds_hmdefaults(t, s) \ - ((t) = stbds_hmput_default_wrapper((t), sizeof *(t)), (t)[-1] = (s)) - -#define stbds_hmfree(p) \ - ((void) ((p) != NULL ? stbds_hmfree_func((p)-1,sizeof*(p)),0 : 0),(p)=NULL) - -#define stbds_hmgets(t, k) (*stbds_hmgetp(t,k)) -#define stbds_hmget(t, k) (stbds_hmgetp(t,k)->value) -#define stbds_hmget_ts(t, k, temp) (stbds_hmgetp_ts(t,k,temp)->value) -#define stbds_hmlen(t) ((t) ? (ptrdiff_t) stbds_header((t)-1)->length-1 : 0) -#define stbds_hmlenu(t) ((t) ? stbds_header((t)-1)->length-1 : 0) -#define stbds_hmgetp_null(t,k) (stbds_hmgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)]) - -#define stbds_shput(t, k, v) \ - ((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), \ - (t)[stbds_temp((t)-1)].value = (v)) - -#define stbds_shputi(t, k, v) \ - ((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), \ - (t)[stbds_temp((t)-1)].value = (v), stbds_temp((t)-1)) - -#define stbds_shputs(t, s) \ - ((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (s).key, sizeof (s).key, STBDS_HM_STRING), \ - (t)[stbds_temp((t)-1)] = (s), \ - (t)[stbds_temp((t)-1)].key = stbds_temp_key((t)-1)) // above line overwrites whole structure, so must rewrite key here if it was allocated internally - -#define stbds_pshput(t, p) \ - ((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (p)->key, sizeof (p)->key, STBDS_HM_PTR_TO_STRING), \ - (t)[stbds_temp((t)-1)] = (p)) - -#define stbds_shgeti(t,k) \ - ((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), \ - stbds_temp((t)-1)) - -#define stbds_pshgeti(t,k) \ - ((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (*(t))->key, STBDS_HM_PTR_TO_STRING), \ - stbds_temp((t)-1)) - -#define stbds_shgetp(t, k) \ - ((void) stbds_shgeti(t,k), &(t)[stbds_temp((t)-1)]) - -#define stbds_pshget(t, k) \ - ((void) stbds_pshgeti(t,k), (t)[stbds_temp((t)-1)]) - -#define stbds_shdel(t,k) \ - (((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_OFFSETOF((t),key), STBDS_HM_STRING)),(t)?stbds_temp((t)-1):0) -#define stbds_pshdel(t,k) \ - (((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) (k), sizeof (*(t))->key, STBDS_OFFSETOF(*(t),key), STBDS_HM_PTR_TO_STRING)),(t)?stbds_temp((t)-1):0) - -#define stbds_sh_new_arena(t) \ - ((t) = stbds_shmode_func_wrapper(t, sizeof *(t), STBDS_SH_ARENA)) -#define stbds_sh_new_strdup(t) \ - ((t) = stbds_shmode_func_wrapper(t, sizeof *(t), STBDS_SH_STRDUP)) - -#define stbds_shdefault(t, v) stbds_hmdefault(t,v) -#define stbds_shdefaults(t, s) stbds_hmdefaults(t,s) - -#define stbds_shfree stbds_hmfree -#define stbds_shlenu stbds_hmlenu - -#define stbds_shgets(t, k) (*stbds_shgetp(t,k)) -#define stbds_shget(t, k) (stbds_shgetp(t,k)->value) -#define stbds_shgetp_null(t,k) (stbds_shgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)]) -#define stbds_shlen stbds_hmlen - -typedef struct -{ - size_t length; - size_t capacity; - void * hash_table; - ptrdiff_t temp; -} stbds_array_header; - -typedef struct stbds_string_block -{ - struct stbds_string_block *next; - char storage[8]; -} stbds_string_block; - -struct stbds_string_arena -{ - stbds_string_block *storage; - size_t remaining; - unsigned char block; - unsigned char mode; // this isn't used by the string arena itself -}; - -#define STBDS_HM_BINARY 0 -#define STBDS_HM_STRING 1 - -enum -{ - STBDS_SH_NONE, - STBDS_SH_DEFAULT, - STBDS_SH_STRDUP, - STBDS_SH_ARENA -}; - -#ifdef __cplusplus -// in C we use implicit assignment from these void*-returning functions to T*. -// in C++ these templates make the same code work -template static T * stbds_arrgrowf_wrapper(T *a, size_t elemsize, size_t addlen, size_t min_cap) { - return (T*)stbds_arrgrowf((void *)a, elemsize, addlen, min_cap); -} -template static T * stbds_hmget_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode) { - return (T*)stbds_hmget_key((void*)a, elemsize, key, keysize, mode); -} -template static T * stbds_hmget_key_ts_wrapper(T *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode) { - return (T*)stbds_hmget_key_ts((void*)a, elemsize, key, keysize, temp, mode); -} -template static T * stbds_hmput_default_wrapper(T *a, size_t elemsize) { - return (T*)stbds_hmput_default((void *)a, elemsize); -} -template static T * stbds_hmput_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode) { - return (T*)stbds_hmput_key((void*)a, elemsize, key, keysize, mode); -} -template static T * stbds_hmdel_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode){ - return (T*)stbds_hmdel_key((void*)a, elemsize, key, keysize, keyoffset, mode); -} -template static T * stbds_shmode_func_wrapper(T *, size_t elemsize, int mode) { - return (T*)stbds_shmode_func(elemsize, mode); -} -#else -#define stbds_arrgrowf_wrapper stbds_arrgrowf -#define stbds_hmget_key_wrapper stbds_hmget_key -#define stbds_hmget_key_ts_wrapper stbds_hmget_key_ts -#define stbds_hmput_default_wrapper stbds_hmput_default -#define stbds_hmput_key_wrapper stbds_hmput_key -#define stbds_hmdel_key_wrapper stbds_hmdel_key -#define stbds_shmode_func_wrapper(t,e,m) stbds_shmode_func(e,m) -#endif - -#endif // INCLUDE_STB_DS_H - - -////////////////////////////////////////////////////////////////////////////// -// -// IMPLEMENTATION -// - -#ifdef STB_DS_IMPLEMENTATION -#include -#include - -#ifndef STBDS_ASSERT -#define STBDS_ASSERT_WAS_UNDEFINED -#define STBDS_ASSERT(x) ((void) 0) -#endif - -#ifdef STBDS_STATISTICS -#define STBDS_STATS(x) x -size_t stbds_array_grow; -size_t stbds_hash_grow; -size_t stbds_hash_shrink; -size_t stbds_hash_rebuild; -size_t stbds_hash_probes; -size_t stbds_hash_alloc; -size_t stbds_rehash_probes; -size_t stbds_rehash_items; -#else -#define STBDS_STATS(x) -#endif - -// -// stbds_arr implementation -// - -//int *prev_allocs[65536]; -//int num_prev; - -void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap) -{ - stbds_array_header temp={0}; // force debugging - void *b; - size_t min_len = stbds_arrlen(a) + addlen; - (void) sizeof(temp); - - // compute the minimum capacity needed - if (min_len > min_cap) - min_cap = min_len; - - if (min_cap <= stbds_arrcap(a)) - return a; - - // increase needed capacity to guarantee O(1) amortized - if (min_cap < 2 * stbds_arrcap(a)) - min_cap = 2 * stbds_arrcap(a); - else if (min_cap < 4) - min_cap = 4; - - //if (num_prev < 65536) if (a) prev_allocs[num_prev++] = (int *) ((char *) a+1); - //if (num_prev == 2201) - // num_prev = num_prev; - b = STBDS_REALLOC(NULL, (a) ? stbds_header(a) : 0, elemsize * min_cap + sizeof(stbds_array_header)); - //if (num_prev < 65536) prev_allocs[num_prev++] = (int *) (char *) b; - b = (char *) b + sizeof(stbds_array_header); - if (a == NULL) { - stbds_header(b)->length = 0; - stbds_header(b)->hash_table = 0; - stbds_header(b)->temp = 0; - } else { - STBDS_STATS(++stbds_array_grow); - } - stbds_header(b)->capacity = min_cap; - - return b; -} - -void stbds_arrfreef(void *a) -{ - STBDS_FREE(NULL, stbds_header(a)); -} - -// -// stbds_hm hash table implementation -// - -#ifdef STBDS_INTERNAL_SMALL_BUCKET -#define STBDS_BUCKET_LENGTH 4 -#else -#define STBDS_BUCKET_LENGTH 8 -#endif - -#define STBDS_BUCKET_SHIFT (STBDS_BUCKET_LENGTH == 8 ? 3 : 2) -#define STBDS_BUCKET_MASK (STBDS_BUCKET_LENGTH-1) -#define STBDS_CACHE_LINE_SIZE 64 - -#define STBDS_ALIGN_FWD(n,a) (((n) + (a) - 1) & ~((a)-1)) - -typedef struct -{ - size_t hash [STBDS_BUCKET_LENGTH]; - ptrdiff_t index[STBDS_BUCKET_LENGTH]; -} stbds_hash_bucket; // in 32-bit, this is one 64-byte cache line; in 64-bit, each array is one 64-byte cache line - -typedef struct -{ - char * temp_key; // this MUST be the first field of the hash table - size_t slot_count; - size_t used_count; - size_t used_count_threshold; - size_t used_count_shrink_threshold; - size_t tombstone_count; - size_t tombstone_count_threshold; - size_t seed; - size_t slot_count_log2; - stbds_string_arena string; - stbds_hash_bucket *storage; // not a separate allocation, just 64-byte aligned storage after this struct -} stbds_hash_index; - -#define STBDS_INDEX_EMPTY -1 -#define STBDS_INDEX_DELETED -2 -#define STBDS_INDEX_IN_USE(x) ((x) >= 0) - -#define STBDS_HASH_EMPTY 0 -#define STBDS_HASH_DELETED 1 - -static size_t stbds_hash_seed=0x31415926; - -void stbds_rand_seed(size_t seed) -{ - stbds_hash_seed = seed; -} - -#define stbds_load_32_or_64(var, temp, v32, v64_hi, v64_lo) \ - temp = v64_lo ^ v32, temp <<= 16, temp <<= 16, temp >>= 16, temp >>= 16, /* discard if 32-bit */ \ - var = v64_hi, var <<= 16, var <<= 16, /* discard if 32-bit */ \ - var ^= temp ^ v32 - -#define STBDS_SIZE_T_BITS ((sizeof (size_t)) * 8) - -static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2) -{ - size_t pos; - STBDS_NOTUSED(slot_log2); - pos = hash & (slot_count-1); - #ifdef STBDS_INTERNAL_BUCKET_START - pos &= ~STBDS_BUCKET_MASK; - #endif - return pos; -} - -static size_t stbds_log2(size_t slot_count) -{ - size_t n=0; - while (slot_count > 1) { - slot_count >>= 1; - ++n; - } - return n; -} - -static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot) -{ - stbds_hash_index *t; - t = (stbds_hash_index *) STBDS_REALLOC(NULL,0,(slot_count >> STBDS_BUCKET_SHIFT) * sizeof(stbds_hash_bucket) + sizeof(stbds_hash_index) + STBDS_CACHE_LINE_SIZE-1); - t->storage = (stbds_hash_bucket *) STBDS_ALIGN_FWD((size_t) (t+1), STBDS_CACHE_LINE_SIZE); - t->slot_count = slot_count; - t->slot_count_log2 = stbds_log2(slot_count); - t->tombstone_count = 0; - t->used_count = 0; - - #if 0 // A1 - t->used_count_threshold = slot_count*12/16; // if 12/16th of table is occupied, grow - t->tombstone_count_threshold = slot_count* 2/16; // if tombstones are 2/16th of table, rebuild - t->used_count_shrink_threshold = slot_count* 4/16; // if table is only 4/16th full, shrink - #elif 1 // A2 - //t->used_count_threshold = slot_count*12/16; // if 12/16th of table is occupied, grow - //t->tombstone_count_threshold = slot_count* 3/16; // if tombstones are 3/16th of table, rebuild - //t->used_count_shrink_threshold = slot_count* 4/16; // if table is only 4/16th full, shrink - - // compute without overflowing - t->used_count_threshold = slot_count - (slot_count>>2); - t->tombstone_count_threshold = (slot_count>>3) + (slot_count>>4); - t->used_count_shrink_threshold = slot_count >> 2; - - #elif 0 // B1 - t->used_count_threshold = slot_count*13/16; // if 13/16th of table is occupied, grow - t->tombstone_count_threshold = slot_count* 2/16; // if tombstones are 2/16th of table, rebuild - t->used_count_shrink_threshold = slot_count* 5/16; // if table is only 5/16th full, shrink - #else // C1 - t->used_count_threshold = slot_count*14/16; // if 14/16th of table is occupied, grow - t->tombstone_count_threshold = slot_count* 2/16; // if tombstones are 2/16th of table, rebuild - t->used_count_shrink_threshold = slot_count* 6/16; // if table is only 6/16th full, shrink - #endif - // Following statistics were measured on a Core i7-6700 @ 4.00Ghz, compiled with clang 7.0.1 -O2 - // Note that the larger tables have high variance as they were run fewer times - // A1 A2 B1 C1 - // 0.10ms : 0.10ms : 0.10ms : 0.11ms : 2,000 inserts creating 2K table - // 0.96ms : 0.95ms : 0.97ms : 1.04ms : 20,000 inserts creating 20K table - // 14.48ms : 14.46ms : 10.63ms : 11.00ms : 200,000 inserts creating 200K table - // 195.74ms : 196.35ms : 203.69ms : 214.92ms : 2,000,000 inserts creating 2M table - // 2193.88ms : 2209.22ms : 2285.54ms : 2437.17ms : 20,000,000 inserts creating 20M table - // 65.27ms : 53.77ms : 65.33ms : 65.47ms : 500,000 inserts & deletes in 2K table - // 72.78ms : 62.45ms : 71.95ms : 72.85ms : 500,000 inserts & deletes in 20K table - // 89.47ms : 77.72ms : 96.49ms : 96.75ms : 500,000 inserts & deletes in 200K table - // 97.58ms : 98.14ms : 97.18ms : 97.53ms : 500,000 inserts & deletes in 2M table - // 118.61ms : 119.62ms : 120.16ms : 118.86ms : 500,000 inserts & deletes in 20M table - // 192.11ms : 194.39ms : 196.38ms : 195.73ms : 500,000 inserts & deletes in 200M table - - if (slot_count <= STBDS_BUCKET_LENGTH) - t->used_count_shrink_threshold = 0; - // to avoid infinite loop, we need to guarantee that at least one slot is empty and will terminate probes - STBDS_ASSERT(t->used_count_threshold + t->tombstone_count_threshold < t->slot_count); - STBDS_STATS(++stbds_hash_alloc); - if (ot) { - t->string = ot->string; - // reuse old seed so we can reuse old hashes so below "copy out old data" doesn't do any hashing - t->seed = ot->seed; - } else { - size_t a,b,temp; - memset(&t->string, 0, sizeof(t->string)); - t->seed = stbds_hash_seed; - // LCG - // in 32-bit, a = 2147001325 b = 715136305 - // in 64-bit, a = 2862933555777941757 b = 3037000493 - stbds_load_32_or_64(a,temp, 2147001325, 0x27bb2ee6, 0x87b0b0fd); - stbds_load_32_or_64(b,temp, 715136305, 0, 0xb504f32d); - stbds_hash_seed = stbds_hash_seed * a + b; - } - - { - size_t i,j; - for (i=0; i < slot_count >> STBDS_BUCKET_SHIFT; ++i) { - stbds_hash_bucket *b = &t->storage[i]; - for (j=0; j < STBDS_BUCKET_LENGTH; ++j) - b->hash[j] = STBDS_HASH_EMPTY; - for (j=0; j < STBDS_BUCKET_LENGTH; ++j) - b->index[j] = STBDS_INDEX_EMPTY; - } - } - - // copy out the old data, if any - if (ot) { - size_t i,j; - t->used_count = ot->used_count; - for (i=0; i < ot->slot_count >> STBDS_BUCKET_SHIFT; ++i) { - stbds_hash_bucket *ob = &ot->storage[i]; - for (j=0; j < STBDS_BUCKET_LENGTH; ++j) { - if (STBDS_INDEX_IN_USE(ob->index[j])) { - size_t hash = ob->hash[j]; - size_t pos = stbds_probe_position(hash, t->slot_count, t->slot_count_log2); - size_t step = STBDS_BUCKET_LENGTH; - STBDS_STATS(++stbds_rehash_items); - for (;;) { - size_t limit,z; - stbds_hash_bucket *bucket; - bucket = &t->storage[pos >> STBDS_BUCKET_SHIFT]; - STBDS_STATS(++stbds_rehash_probes); - - for (z=pos & STBDS_BUCKET_MASK; z < STBDS_BUCKET_LENGTH; ++z) { - if (bucket->hash[z] == 0) { - bucket->hash[z] = hash; - bucket->index[z] = ob->index[j]; - goto done; - } - } - - limit = pos & STBDS_BUCKET_MASK; - for (z = 0; z < limit; ++z) { - if (bucket->hash[z] == 0) { - bucket->hash[z] = hash; - bucket->index[z] = ob->index[j]; - goto done; - } - } - - pos += step; // quadratic probing - step += STBDS_BUCKET_LENGTH; - pos &= (t->slot_count-1); - } - } - done: - ; - } - } - } - - return t; -} - -#define STBDS_ROTATE_LEFT(val, n) (((val) << (n)) | ((val) >> (STBDS_SIZE_T_BITS - (n)))) -#define STBDS_ROTATE_RIGHT(val, n) (((val) >> (n)) | ((val) << (STBDS_SIZE_T_BITS - (n)))) - -size_t stbds_hash_string(char *str, size_t seed) -{ - size_t hash = seed; - while (*str) - hash = STBDS_ROTATE_LEFT(hash, 9) + (unsigned char) *str++; - - // Thomas Wang 64-to-32 bit mix function, hopefully also works in 32 bits - hash ^= seed; - hash = (~hash) + (hash << 18); - hash ^= hash ^ STBDS_ROTATE_RIGHT(hash,31); - hash = hash * 21; - hash ^= hash ^ STBDS_ROTATE_RIGHT(hash,11); - hash += (hash << 6); - hash ^= STBDS_ROTATE_RIGHT(hash,22); - return hash+seed; -} - -#ifdef STBDS_SIPHASH_2_4 -#define STBDS_SIPHASH_C_ROUNDS 2 -#define STBDS_SIPHASH_D_ROUNDS 4 -typedef int STBDS_SIPHASH_2_4_can_only_be_used_in_64_bit_builds[sizeof(size_t) == 8 ? 1 : -1]; -#endif - -#ifndef STBDS_SIPHASH_C_ROUNDS -#define STBDS_SIPHASH_C_ROUNDS 1 -#endif -#ifndef STBDS_SIPHASH_D_ROUNDS -#define STBDS_SIPHASH_D_ROUNDS 1 -#endif - -#ifdef _MSC_VER -#pragma warning(push) -#pragma warning(disable:4127) // conditional expression is constant, for do..while(0) and sizeof()== -#endif - -static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed) -{ - unsigned char *d = (unsigned char *) p; - size_t i,j; - size_t v0,v1,v2,v3, data; - - // hash that works on 32- or 64-bit registers without knowing which we have - // (computes different results on 32-bit and 64-bit platform) - // derived from siphash, but on 32-bit platforms very different as it uses 4 32-bit state not 4 64-bit - v0 = ((((size_t) 0x736f6d65 << 16) << 16) + 0x70736575) ^ seed; - v1 = ((((size_t) 0x646f7261 << 16) << 16) + 0x6e646f6d) ^ ~seed; - v2 = ((((size_t) 0x6c796765 << 16) << 16) + 0x6e657261) ^ seed; - v3 = ((((size_t) 0x74656462 << 16) << 16) + 0x79746573) ^ ~seed; - - #ifdef STBDS_TEST_SIPHASH_2_4 - // hardcoded with key material in the siphash test vectors - v0 ^= 0x0706050403020100ull ^ seed; - v1 ^= 0x0f0e0d0c0b0a0908ull ^ ~seed; - v2 ^= 0x0706050403020100ull ^ seed; - v3 ^= 0x0f0e0d0c0b0a0908ull ^ ~seed; - #endif - - #define STBDS_SIPROUND() \ - do { \ - v0 += v1; v1 = STBDS_ROTATE_LEFT(v1, 13); v1 ^= v0; v0 = STBDS_ROTATE_LEFT(v0,STBDS_SIZE_T_BITS/2); \ - v2 += v3; v3 = STBDS_ROTATE_LEFT(v3, 16); v3 ^= v2; \ - v2 += v1; v1 = STBDS_ROTATE_LEFT(v1, 17); v1 ^= v2; v2 = STBDS_ROTATE_LEFT(v2,STBDS_SIZE_T_BITS/2); \ - v0 += v3; v3 = STBDS_ROTATE_LEFT(v3, 21); v3 ^= v0; \ - } while (0) - - for (i=0; i+sizeof(size_t) <= len; i += sizeof(size_t), d += sizeof(size_t)) { - data = d[0] | (d[1] << 8) | (d[2] << 16) | (d[3] << 24); - data |= (size_t) (d[4] | (d[5] << 8) | (d[6] << 16) | (d[7] << 24)) << 16 << 16; // discarded if size_t == 4 - - v3 ^= data; - for (j=0; j < STBDS_SIPHASH_C_ROUNDS; ++j) - STBDS_SIPROUND(); - v0 ^= data; - } - data = len << (STBDS_SIZE_T_BITS-8); - switch (len - i) { - case 7: data |= ((size_t) d[6] << 24) << 24; // fall through - case 6: data |= ((size_t) d[5] << 20) << 20; // fall through - case 5: data |= ((size_t) d[4] << 16) << 16; // fall through - case 4: data |= (d[3] << 24); // fall through - case 3: data |= (d[2] << 16); // fall through - case 2: data |= (d[1] << 8); // fall through - case 1: data |= d[0]; // fall through - case 0: break; - } - v3 ^= data; - for (j=0; j < STBDS_SIPHASH_C_ROUNDS; ++j) - STBDS_SIPROUND(); - v0 ^= data; - v2 ^= 0xff; - for (j=0; j < STBDS_SIPHASH_D_ROUNDS; ++j) - STBDS_SIPROUND(); - -#ifdef STBDS_SIPHASH_2_4 - return v0^v1^v2^v3; -#else - return v1^v2^v3; // slightly stronger since v0^v3 in above cancels out final round operation? I tweeted at the authors of SipHash about this but they didn't reply -#endif -} - -size_t stbds_hash_bytes(void *p, size_t len, size_t seed) -{ -#ifdef STBDS_SIPHASH_2_4 - return stbds_siphash_bytes(p,len,seed); -#else - unsigned char *d = (unsigned char *) p; - - if (len == 4) { - unsigned int hash = d[0] | (d[1] << 8) | (d[2] << 16) | (d[3] << 24); - #if 0 - // HASH32-A Bob Jenkin's hash function w/o large constants - hash ^= seed; - hash -= (hash<<6); - hash ^= (hash>>17); - hash -= (hash<<9); - hash ^= seed; - hash ^= (hash<<4); - hash -= (hash<<3); - hash ^= (hash<<10); - hash ^= (hash>>15); - #elif 1 - // HASH32-BB Bob Jenkin's presumably-accidental version of Thomas Wang hash with rotates turned into shifts. - // Note that converting these back to rotates makes it run a lot slower, presumably due to collisions, so I'm - // not really sure what's going on. - hash ^= seed; - hash = (hash ^ 61) ^ (hash >> 16); - hash = hash + (hash << 3); - hash = hash ^ (hash >> 4); - hash = hash * 0x27d4eb2d; - hash ^= seed; - hash = hash ^ (hash >> 15); - #else // HASH32-C - Murmur3 - hash ^= seed; - hash *= 0xcc9e2d51; - hash = (hash << 17) | (hash >> 15); - hash *= 0x1b873593; - hash ^= seed; - hash = (hash << 19) | (hash >> 13); - hash = hash*5 + 0xe6546b64; - hash ^= hash >> 16; - hash *= 0x85ebca6b; - hash ^= seed; - hash ^= hash >> 13; - hash *= 0xc2b2ae35; - hash ^= hash >> 16; - #endif - // Following statistics were measured on a Core i7-6700 @ 4.00Ghz, compiled with clang 7.0.1 -O2 - // Note that the larger tables have high variance as they were run fewer times - // HASH32-A // HASH32-BB // HASH32-C - // 0.10ms // 0.10ms // 0.10ms : 2,000 inserts creating 2K table - // 0.96ms // 0.95ms // 0.99ms : 20,000 inserts creating 20K table - // 14.69ms // 14.43ms // 14.97ms : 200,000 inserts creating 200K table - // 199.99ms // 195.36ms // 202.05ms : 2,000,000 inserts creating 2M table - // 2234.84ms // 2187.74ms // 2240.38ms : 20,000,000 inserts creating 20M table - // 55.68ms // 53.72ms // 57.31ms : 500,000 inserts & deletes in 2K table - // 63.43ms // 61.99ms // 65.73ms : 500,000 inserts & deletes in 20K table - // 80.04ms // 77.96ms // 81.83ms : 500,000 inserts & deletes in 200K table - // 100.42ms // 97.40ms // 102.39ms : 500,000 inserts & deletes in 2M table - // 119.71ms // 120.59ms // 121.63ms : 500,000 inserts & deletes in 20M table - // 185.28ms // 195.15ms // 187.74ms : 500,000 inserts & deletes in 200M table - // 15.58ms // 14.79ms // 15.52ms : 200,000 inserts creating 200K table with varying key spacing - - return (((size_t) hash << 16 << 16) | hash) ^ seed; - } else if (len == 8 && sizeof(size_t) == 8) { - size_t hash = d[0] | (d[1] << 8) | (d[2] << 16) | (d[3] << 24); - hash |= (size_t) (d[4] | (d[5] << 8) | (d[6] << 16) | (d[7] << 24)) << 16 << 16; // avoid warning if size_t == 4 - hash ^= seed; - hash = (~hash) + (hash << 21); - hash ^= STBDS_ROTATE_RIGHT(hash,24); - hash *= 265; - hash ^= STBDS_ROTATE_RIGHT(hash,14); - hash ^= seed; - hash *= 21; - hash ^= STBDS_ROTATE_RIGHT(hash,28); - hash += (hash << 31); - hash = (~hash) + (hash << 18); - return hash; - } else { - return stbds_siphash_bytes(p,len,seed); - } -#endif -} -#ifdef _MSC_VER -#pragma warning(pop) -#endif - - -static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i) -{ - if (mode >= STBDS_HM_STRING) - return 0==strcmp((char *) key, * (char **) ((char *) a + elemsize*i + keyoffset)); - else - return 0==memcmp(key, (char *) a + elemsize*i + keyoffset, keysize); -} - -#define STBDS_HASH_TO_ARR(x,elemsize) ((char*) (x) - (elemsize)) -#define STBDS_ARR_TO_HASH(x,elemsize) ((char*) (x) + (elemsize)) - -#define stbds_hash_table(a) ((stbds_hash_index *) stbds_header(a)->hash_table) - -void stbds_hmfree_func(void *a, size_t elemsize) -{ - if (a == NULL) return; - if (stbds_hash_table(a) != NULL) { - if (stbds_hash_table(a)->string.mode == STBDS_SH_STRDUP) { - size_t i; - // skip 0th element, which is default - for (i=1; i < stbds_header(a)->length; ++i) - STBDS_FREE(NULL, *(char**) ((char *) a + elemsize*i)); - } - stbds_strreset(&stbds_hash_table(a)->string); - } - STBDS_FREE(NULL, stbds_header(a)->hash_table); - STBDS_FREE(NULL, stbds_header(a)); -} - -static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode) -{ - void *raw_a = STBDS_HASH_TO_ARR(a,elemsize); - stbds_hash_index *table = stbds_hash_table(raw_a); - size_t hash = mode >= STBDS_HM_STRING ? stbds_hash_string((char*)key,table->seed) : stbds_hash_bytes(key, keysize,table->seed); - size_t step = STBDS_BUCKET_LENGTH; - size_t limit,i; - size_t pos; - stbds_hash_bucket *bucket; - - if (hash < 2) hash += 2; // stored hash values are forbidden from being 0, so we can detect empty slots - - pos = stbds_probe_position(hash, table->slot_count, table->slot_count_log2); - - for (;;) { - STBDS_STATS(++stbds_hash_probes); - bucket = &table->storage[pos >> STBDS_BUCKET_SHIFT]; - - // start searching from pos to end of bucket, this should help performance on small hash tables that fit in cache - for (i=pos & STBDS_BUCKET_MASK; i < STBDS_BUCKET_LENGTH; ++i) { - if (bucket->hash[i] == hash) { - if (stbds_is_key_equal(a, elemsize, key, keysize, keyoffset, mode, bucket->index[i])) { - return (pos & ~STBDS_BUCKET_MASK)+i; - } - } else if (bucket->hash[i] == STBDS_HASH_EMPTY) { - return -1; - } - } - - // search from beginning of bucket to pos - limit = pos & STBDS_BUCKET_MASK; - for (i = 0; i < limit; ++i) { - if (bucket->hash[i] == hash) { - if (stbds_is_key_equal(a, elemsize, key, keysize, keyoffset, mode, bucket->index[i])) { - return (pos & ~STBDS_BUCKET_MASK)+i; - } - } else if (bucket->hash[i] == STBDS_HASH_EMPTY) { - return -1; - } - } - - // quadratic probing - pos += step; - step += STBDS_BUCKET_LENGTH; - pos &= (table->slot_count-1); - } - /* NOTREACHED */ -} - -void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode) -{ - size_t keyoffset = 0; - if (a == NULL) { - // make it non-empty so we can return a temp - a = stbds_arrgrowf(0, elemsize, 0, 1); - stbds_header(a)->length += 1; - memset(a, 0, elemsize); - *temp = STBDS_INDEX_EMPTY; - // adjust a to point after the default element - return STBDS_ARR_TO_HASH(a,elemsize); - } else { - stbds_hash_index *table; - void *raw_a = STBDS_HASH_TO_ARR(a,elemsize); - // adjust a to point to the default element - table = (stbds_hash_index *) stbds_header(raw_a)->hash_table; - if (table == 0) { - *temp = -1; - } else { - ptrdiff_t slot = stbds_hm_find_slot(a, elemsize, key, keysize, keyoffset, mode); - if (slot < 0) { - *temp = STBDS_INDEX_EMPTY; - } else { - stbds_hash_bucket *b = &table->storage[slot >> STBDS_BUCKET_SHIFT]; - *temp = b->index[slot & STBDS_BUCKET_MASK]; - } - } - return a; - } -} - -void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode) -{ - ptrdiff_t temp; - void *p = stbds_hmget_key_ts(a, elemsize, key, keysize, &temp, mode); - stbds_temp(STBDS_HASH_TO_ARR(p,elemsize)) = temp; - return p; -} - -void * stbds_hmput_default(void *a, size_t elemsize) -{ - // three cases: - // a is NULL <- allocate - // a has a hash table but no entries, because of shmode <- grow - // a has entries <- do nothing - if (a == NULL || stbds_header(STBDS_HASH_TO_ARR(a,elemsize))->length == 0) { - a = stbds_arrgrowf(a ? STBDS_HASH_TO_ARR(a,elemsize) : NULL, elemsize, 0, 1); - stbds_header(a)->length += 1; - memset(a, 0, elemsize); - a=STBDS_ARR_TO_HASH(a,elemsize); - } - return a; -} - -static char *stbds_strdup(char *str); - -void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode) -{ - size_t keyoffset=0; - void *raw_a; - stbds_hash_index *table; - - if (a == NULL) { - a = stbds_arrgrowf(0, elemsize, 0, 1); - memset(a, 0, elemsize); - stbds_header(a)->length += 1; - // adjust a to point AFTER the default element - a = STBDS_ARR_TO_HASH(a,elemsize); - } - - // adjust a to point to the default element - raw_a = a; - a = STBDS_HASH_TO_ARR(a,elemsize); - - table = (stbds_hash_index *) stbds_header(a)->hash_table; - - if (table == NULL || table->used_count >= table->used_count_threshold) { - stbds_hash_index *nt; - size_t slot_count; - - slot_count = (table == NULL) ? STBDS_BUCKET_LENGTH : table->slot_count*2; - nt = stbds_make_hash_index(slot_count, table); - if (table) - STBDS_FREE(NULL, table); - else - nt->string.mode = mode >= STBDS_HM_STRING ? STBDS_SH_DEFAULT : 0; - stbds_header(a)->hash_table = table = nt; - STBDS_STATS(++stbds_hash_grow); - } - - // we iterate hash table explicitly because we want to track if we saw a tombstone - { - size_t hash = mode >= STBDS_HM_STRING ? stbds_hash_string((char*)key,table->seed) : stbds_hash_bytes(key, keysize,table->seed); - size_t step = STBDS_BUCKET_LENGTH; - size_t pos; - ptrdiff_t tombstone = -1; - stbds_hash_bucket *bucket; - - // stored hash values are forbidden from being 0, so we can detect empty slots to early out quickly - if (hash < 2) hash += 2; - - pos = stbds_probe_position(hash, table->slot_count, table->slot_count_log2); - - for (;;) { - size_t limit, i; - STBDS_STATS(++stbds_hash_probes); - bucket = &table->storage[pos >> STBDS_BUCKET_SHIFT]; - - // start searching from pos to end of bucket - for (i=pos & STBDS_BUCKET_MASK; i < STBDS_BUCKET_LENGTH; ++i) { - if (bucket->hash[i] == hash) { - if (stbds_is_key_equal(raw_a, elemsize, key, keysize, keyoffset, mode, bucket->index[i])) { - stbds_temp(a) = bucket->index[i]; - if (mode >= STBDS_HM_STRING) - stbds_temp_key(a) = * (char **) ((char *) raw_a + elemsize*bucket->index[i] + keyoffset); - return STBDS_ARR_TO_HASH(a,elemsize); - } - } else if (bucket->hash[i] == 0) { - pos = (pos & ~STBDS_BUCKET_MASK) + i; - goto found_empty_slot; - } else if (tombstone < 0) { - if (bucket->index[i] == STBDS_INDEX_DELETED) - tombstone = (ptrdiff_t) ((pos & ~STBDS_BUCKET_MASK) + i); - } - } - - // search from beginning of bucket to pos - limit = pos & STBDS_BUCKET_MASK; - for (i = 0; i < limit; ++i) { - if (bucket->hash[i] == hash) { - if (stbds_is_key_equal(raw_a, elemsize, key, keysize, keyoffset, mode, bucket->index[i])) { - stbds_temp(a) = bucket->index[i]; - return STBDS_ARR_TO_HASH(a,elemsize); - } - } else if (bucket->hash[i] == 0) { - pos = (pos & ~STBDS_BUCKET_MASK) + i; - goto found_empty_slot; - } else if (tombstone < 0) { - if (bucket->index[i] == STBDS_INDEX_DELETED) - tombstone = (ptrdiff_t) ((pos & ~STBDS_BUCKET_MASK) + i); - } - } - - // quadratic probing - pos += step; - step += STBDS_BUCKET_LENGTH; - pos &= (table->slot_count-1); - } - found_empty_slot: - if (tombstone >= 0) { - pos = tombstone; - --table->tombstone_count; - } - ++table->used_count; - - { - ptrdiff_t i = (ptrdiff_t) stbds_arrlen(a); - // we want to do stbds_arraddn(1), but we can't use the macros since we don't have something of the right type - if ((size_t) i+1 > stbds_arrcap(a)) - *(void **) &a = stbds_arrgrowf(a, elemsize, 1, 0); - raw_a = STBDS_ARR_TO_HASH(a,elemsize); - - STBDS_ASSERT((size_t) i+1 <= stbds_arrcap(a)); - stbds_header(a)->length = i+1; - bucket = &table->storage[pos >> STBDS_BUCKET_SHIFT]; - bucket->hash[pos & STBDS_BUCKET_MASK] = hash; - bucket->index[pos & STBDS_BUCKET_MASK] = i-1; - stbds_temp(a) = i-1; - - switch (table->string.mode) { - case STBDS_SH_STRDUP: stbds_temp_key(a) = *(char **) ((char *) a + elemsize*i) = stbds_strdup((char*) key); break; - case STBDS_SH_ARENA: stbds_temp_key(a) = *(char **) ((char *) a + elemsize*i) = stbds_stralloc(&table->string, (char*)key); break; - case STBDS_SH_DEFAULT: stbds_temp_key(a) = *(char **) ((char *) a + elemsize*i) = (char *) key; break; - default: memcpy((char *) a + elemsize*i, key, keysize); break; - } - } - return STBDS_ARR_TO_HASH(a,elemsize); - } -} - -void * stbds_shmode_func(size_t elemsize, int mode) -{ - void *a = stbds_arrgrowf(0, elemsize, 0, 1); - stbds_hash_index *h; - memset(a, 0, elemsize); - stbds_header(a)->length = 1; - stbds_header(a)->hash_table = h = (stbds_hash_index *) stbds_make_hash_index(STBDS_BUCKET_LENGTH, NULL); - h->string.mode = (unsigned char) mode; - return STBDS_ARR_TO_HASH(a,elemsize); -} - -void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode) -{ - if (a == NULL) { - return 0; - } else { - stbds_hash_index *table; - void *raw_a = STBDS_HASH_TO_ARR(a,elemsize); - table = (stbds_hash_index *) stbds_header(raw_a)->hash_table; - stbds_temp(raw_a) = 0; - if (table == 0) { - return a; - } else { - ptrdiff_t slot; - slot = stbds_hm_find_slot(a, elemsize, key, keysize, keyoffset, mode); - if (slot < 0) - return a; - else { - stbds_hash_bucket *b = &table->storage[slot >> STBDS_BUCKET_SHIFT]; - int i = slot & STBDS_BUCKET_MASK; - ptrdiff_t old_index = b->index[i]; - ptrdiff_t final_index = (ptrdiff_t) stbds_arrlen(raw_a)-1-1; // minus one for the raw_a vs a, and minus one for 'last' - STBDS_ASSERT(slot < (ptrdiff_t) table->slot_count); - --table->used_count; - ++table->tombstone_count; - stbds_temp(raw_a) = 1; - STBDS_ASSERT(table->used_count >= 0); - //STBDS_ASSERT(table->tombstone_count < table->slot_count/4); - b->hash[i] = STBDS_HASH_DELETED; - b->index[i] = STBDS_INDEX_DELETED; - - if (mode == STBDS_HM_STRING && table->string.mode == STBDS_SH_STRDUP) - STBDS_FREE(NULL, *(char**) ((char *) a+elemsize*old_index)); - - // if indices are the same, memcpy is a no-op, but back-pointer-fixup will fail, so skip - if (old_index != final_index) { - // swap delete - memmove((char*) a + elemsize*old_index, (char*) a + elemsize*final_index, elemsize); - - // now find the slot for the last element - if (mode == STBDS_HM_STRING) - slot = stbds_hm_find_slot(a, elemsize, *(char**) ((char *) a+elemsize*old_index + keyoffset), keysize, keyoffset, mode); - else - slot = stbds_hm_find_slot(a, elemsize, (char* ) a+elemsize*old_index + keyoffset, keysize, keyoffset, mode); - STBDS_ASSERT(slot >= 0); - b = &table->storage[slot >> STBDS_BUCKET_SHIFT]; - i = slot & STBDS_BUCKET_MASK; - STBDS_ASSERT(b->index[i] == final_index); - b->index[i] = old_index; - } - stbds_header(raw_a)->length -= 1; - - if (table->used_count < table->used_count_shrink_threshold && table->slot_count > STBDS_BUCKET_LENGTH) { - stbds_header(raw_a)->hash_table = stbds_make_hash_index(table->slot_count>>1, table); - STBDS_FREE(NULL, table); - STBDS_STATS(++stbds_hash_shrink); - } else if (table->tombstone_count > table->tombstone_count_threshold) { - stbds_header(raw_a)->hash_table = stbds_make_hash_index(table->slot_count , table); - STBDS_FREE(NULL, table); - STBDS_STATS(++stbds_hash_rebuild); - } - - return a; - } - } - } - /* NOTREACHED */ -} - -static char *stbds_strdup(char *str) -{ - // to keep replaceable allocator simple, we don't want to use strdup. - // rolling our own also avoids problem of strdup vs _strdup - size_t len = strlen(str)+1; - char *p = (char*) STBDS_REALLOC(NULL, 0, len); - memmove(p, str, len); - return p; -} - -#ifndef STBDS_STRING_ARENA_BLOCKSIZE_MIN -#define STBDS_STRING_ARENA_BLOCKSIZE_MIN 512u -#endif -#ifndef STBDS_STRING_ARENA_BLOCKSIZE_MAX -#define STBDS_STRING_ARENA_BLOCKSIZE_MAX (1u<<20) -#endif - -char *stbds_stralloc(stbds_string_arena *a, char *str) -{ - char *p; - size_t len = strlen(str)+1; - if (len > a->remaining) { - // compute the next blocksize - size_t blocksize = a->block; - - // size is 512, 512, 1024, 1024, 2048, 2048, 4096, 4096, etc., so that - // there are log(SIZE) allocations to free when we destroy the table - blocksize = (size_t) (STBDS_STRING_ARENA_BLOCKSIZE_MIN) << (blocksize>>1); - - // if size is under 1M, advance to next blocktype - if (blocksize < (size_t)(STBDS_STRING_ARENA_BLOCKSIZE_MAX)) - ++a->block; - - if (len > blocksize) { - // if string is larger than blocksize, then just allocate the full size. - // note that we still advance string_block so block size will continue - // increasing, so e.g. if somebody only calls this with 1000-long strings, - // eventually the arena will start doubling and handling those as well - stbds_string_block *sb = (stbds_string_block *) STBDS_REALLOC(NULL, 0, sizeof(*sb)-8 + len); - memmove(sb->storage, str, len); - if (a->storage) { - // insert it after the first element, so that we don't waste the space there - sb->next = a->storage->next; - a->storage->next = sb; - } else { - sb->next = 0; - a->storage = sb; - a->remaining = 0; // this is redundant, but good for clarity - } - return sb->storage; - } else { - stbds_string_block *sb = (stbds_string_block *) STBDS_REALLOC(NULL, 0, sizeof(*sb)-8 + blocksize); - sb->next = a->storage; - a->storage = sb; - a->remaining = blocksize; - } - } - - STBDS_ASSERT(len <= a->remaining); - p = a->storage->storage + a->remaining - len; - a->remaining -= len; - memmove(p, str, len); - return p; -} - -void stbds_strreset(stbds_string_arena *a) -{ - stbds_string_block *x,*y; - x = a->storage; - while (x) { - y = x->next; - STBDS_FREE(NULL, x); - x = y; - } - memset(a, 0, sizeof(*a)); -} - -#endif - -////////////////////////////////////////////////////////////////////////////// -// -// UNIT TESTS -// - -#ifdef STBDS_UNIT_TESTS -#include -#ifdef STBDS_ASSERT_WAS_UNDEFINED -#undef STBDS_ASSERT -#endif -#ifndef STBDS_ASSERT -#define STBDS_ASSERT assert -#include -#endif - -typedef struct { int key,b,c,d; } stbds_struct; -typedef struct { int key[2],b,c,d; } stbds_struct2; - -static char buffer[256]; -char *strkey(int n) -{ -#if defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__) - sprintf_s(buffer, sizeof(buffer), "test_%d", n); -#else - sprintf(buffer, "test_%d", n); -#endif - return buffer; -} - -void stbds_unit_tests(void) -{ -#if defined(_MSC_VER) && _MSC_VER <= 1200 && defined(__cplusplus) - // VC6 C++ doesn't like the template<> trick on unnamed structures, so do nothing! - STBDS_ASSERT(0); -#else - const int testsize = 100000; - const int testsize2 = testsize/20; - int *arr=NULL; - struct { int key; int value; } *intmap = NULL; - struct { char *key; int value; } *strmap = NULL, s; - struct { stbds_struct key; int value; } *map = NULL; - stbds_struct *map2 = NULL; - stbds_struct2 *map3 = NULL; - stbds_string_arena sa = { 0 }; - int key3[2] = { 1,2 }; - ptrdiff_t temp; - - int i,j; - - STBDS_ASSERT(arrlen(arr)==0); - for (i=0; i < 20000; i += 50) { - for (j=0; j < i; ++j) - arrpush(arr,j); - arrfree(arr); - } - - for (i=0; i < 4; ++i) { - arrpush(arr,1); arrpush(arr,2); arrpush(arr,3); arrpush(arr,4); - arrdel(arr,i); - arrfree(arr); - arrpush(arr,1); arrpush(arr,2); arrpush(arr,3); arrpush(arr,4); - arrdelswap(arr,i); - arrfree(arr); - } - - for (i=0; i < 5; ++i) { - arrpush(arr,1); arrpush(arr,2); arrpush(arr,3); arrpush(arr,4); - stbds_arrins(arr,i,5); - STBDS_ASSERT(arr[i] == 5); - if (i < 4) - STBDS_ASSERT(arr[4] == 4); - arrfree(arr); - } - - i = 1; - STBDS_ASSERT(hmgeti(intmap,i) == -1); - hmdefault(intmap, -2); - STBDS_ASSERT(hmgeti(intmap, i) == -1); - STBDS_ASSERT(hmget (intmap, i) == -2); - for (i=0; i < testsize; i+=2){ - hmput(intmap, i, i*5); - } - for (i=0; i < testsize; i+=1) { - if (i & 1) {STBDS_ASSERT(hmget(intmap, i) == -2 );} - else { STBDS_ASSERT(hmget(intmap, i) == i*5);} - if (i & 1) {STBDS_ASSERT(hmget_ts(intmap, i, temp) == -2 );} - else {STBDS_ASSERT(hmget_ts(intmap, i, temp) == i*5);} - } - for (i=0; i < testsize; i+=2) - hmput(intmap, i, i*3); - for (i=0; i < testsize; i+=1){ - if (i & 1) {STBDS_ASSERT(hmget(intmap, i) == -2 );} - else {STBDS_ASSERT(hmget(intmap, i) == i*3);}} - for (i=2; i < testsize; i+=4) - hmdel(intmap, i); // delete half the entries - for (i=0; i < testsize; i+=1){ - if (i & 3){ STBDS_ASSERT(hmget(intmap, i) == -2 );} - else { STBDS_ASSERT(hmget(intmap, i) == i*3);}} - for (i=0; i < testsize; i+=1){ - hmdel(intmap, i); // delete the rest of the entries - } - for (i=0; i < testsize; i+=1){ - STBDS_ASSERT(hmget(intmap, i) == -2 ); - } - hmfree(intmap); - for (i=0; i < testsize; i+=2){ - hmput(intmap, i, i*3); - } - hmfree(intmap); - - #if defined(__clang__) || defined(__GNUC__) - #ifndef __cplusplus - intmap = NULL; - hmput(intmap, 15, 7); - hmput(intmap, 11, 3); - hmput(intmap, 9, 5); - STBDS_ASSERT(hmget(intmap, 9) == 5); - STBDS_ASSERT(hmget(intmap, 11) == 3); - STBDS_ASSERT(hmget(intmap, 15) == 7); - #endif - #endif - - for (i=0; i < testsize; ++i) - { stralloc(&sa, strkey(i));} - strreset(&sa); - - { - s.key = "a", s.value = 1; - shputs(strmap, s); - STBDS_ASSERT(*strmap[0].key == 'a'); - STBDS_ASSERT(strmap[0].key == s.key); - STBDS_ASSERT(strmap[0].value == s.value); - shfree(strmap); - } - - { - s.key = "a", s.value = 1; - sh_new_strdup(strmap); - shputs(strmap, s); - STBDS_ASSERT(*strmap[0].key == 'a'); - STBDS_ASSERT(strmap[0].key != s.key); - STBDS_ASSERT(strmap[0].value == s.value); - shfree(strmap); - } - - { - s.key = "a", s.value = 1; - sh_new_arena(strmap); - shputs(strmap, s); - STBDS_ASSERT(*strmap[0].key == 'a'); - STBDS_ASSERT(strmap[0].key != s.key); - STBDS_ASSERT(strmap[0].value == s.value); - shfree(strmap); - } - - for (j=0; j < 2; ++j) { - STBDS_ASSERT(shgeti(strmap,"foo") == -1); - if (j == 0) - sh_new_strdup(strmap); - else - sh_new_arena(strmap); - STBDS_ASSERT(shgeti(strmap,"foo") == -1); - shdefault(strmap, -2); - STBDS_ASSERT(shgeti(strmap,"foo") == -1); - for (i=0; i < testsize; i+=2) - shput(strmap, strkey(i), i*3); - for (i=0; i < testsize; i+=1){ - if (i & 1) {STBDS_ASSERT(shget(strmap, strkey(i)) == -2 );} - else { STBDS_ASSERT(shget(strmap, strkey(i)) == i*3);} - } - for (i=2; i < testsize; i+=4) - shdel(strmap, strkey(i)); // delete half the entries - for (i=0; i < testsize; i+=1){ - if (i & 3){ STBDS_ASSERT(shget(strmap, strkey(i)) == -2 );} - else { STBDS_ASSERT(shget(strmap, strkey(i)) == i*3);} - } - for (i=0; i < testsize; i+=1){ - shdel(strmap, strkey(i)); // delete the rest of the entries - } - for (i=0; i < testsize; i+=1){ - STBDS_ASSERT(shget(strmap, strkey(i)) == -2 ); - } - shfree(strmap); - } - - { - struct { char *key; char value; } *hash = NULL; - char name[4] = "jen"; - shput(hash, "bob" , 'h'); - shput(hash, "sally" , 'e'); - shput(hash, "fred" , 'l'); - shput(hash, "jen" , 'x'); - shput(hash, "doug" , 'o'); - - shput(hash, name , 'l'); - shfree(hash); - } - - for (i=0; i < testsize; i += 2) { - stbds_struct s = { i,i*2,i*3,i*4 }; - hmput(map, s, i*5); - } - - for (i=0; i < testsize; i += 1) { - stbds_struct s = { i,i*2,i*3 ,i*4 }; - stbds_struct t = { i,i*2,i*3+1,i*4 }; - if (i & 1) {STBDS_ASSERT(hmget(map, s) == 0);} - else {STBDS_ASSERT(hmget(map, s) == i*5);} - if (i & 1) {STBDS_ASSERT(hmget_ts(map, s, temp) == 0);} - else { STBDS_ASSERT(hmget_ts(map, s, temp) == i*5);} - //STBDS_ASSERT(hmget(map, t.key) == 0); - } - - for (i=0; i < testsize; i += 2) { - stbds_struct s = { i,i*2,i*3,i*4 }; - hmputs(map2, s); - } - hmfree(map); - - for (i=0; i < testsize; i += 1) { - stbds_struct s = { i,i*2,i*3,i*4 }; - stbds_struct t = { i,i*2,i*3+1,i*4 }; - if (i & 1){ STBDS_ASSERT(hmgets(map2, s.key).d == 0);} - else {STBDS_ASSERT(hmgets(map2, s.key).d == i*4);} - //STBDS_ASSERT(hmgetp(map2, t.key) == 0); - } - hmfree(map2); - - for (i=0; i < testsize; i += 2) { - stbds_struct2 s = { { i,i*2 }, i*3,i*4, i*5 }; - hmputs(map3, s); - } - for (i=0; i < testsize; i += 1) { - stbds_struct2 s = { { i,i*2}, i*3, i*4, i*5 }; - stbds_struct2 t = { { i,i*2}, i*3+1, i*4, i*5 }; - if (i & 1) {STBDS_ASSERT(hmgets(map3, s.key).d == 0);} - else { STBDS_ASSERT(hmgets(map3, s.key).d == i*5);} - //STBDS_ASSERT(hmgetp(map3, t.key) == 0); - } -#endif -} -#endif - - -/* ------------------------------------------------------------------------------- -This software is available under 2 licenses -- choose whichever you prefer. ------------------------------------------------------------------------------- -ALTERNATIVE A - MIT License -Copyright (c) 2019 Sean Barrett -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. ------------------------------------------------------------------------------- -ALTERNATIVE B - Public Domain (www.unlicense.org) -This is free and unencumbered software released into the public domain. -Anyone is free to copy, modify, publish, use, compile, sell, or distribute this -software, either in source code form or as a compiled binary, for any purpose, -commercial or non-commercial, and by any means. -In jurisdictions that recognize copyright laws, the author or authors of this -software dedicate any and all copyright interest in the software to the public -domain. We make this dedication for the benefit of the public at large and to -the detriment of our heirs and successors. We intend this dedication to be an -overt act of relinquishment in perpetuity of all present and future rights to -this software under copyright law. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------- -*/ diff --git a/wrapper/c/src/wrapper.cpp b/wrapper/c/src/wrapper.cpp deleted file mode 100644 index ab8bce68..00000000 --- a/wrapper/c/src/wrapper.cpp +++ /dev/null @@ -1,588 +0,0 @@ - - -#include "oopetris_wrapper.h" - - -#if defined(__GNUC__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif - -#define STB_DS_IMPLEMENTATION -#define STBDS_NO_SHORT_NAMES -#define STBDS_SIPHASH_2_4 -#include "./thirdparty/stb_ds.h" - - -#if defined(__GNUC__) -#pragma GCC diagnostic pop -#endif - - -#include -#include -#include -#include - - -bool oopetris_is_recording_file(const char* file_path) { - - if (file_path == nullptr) { - return false; - } - - if (not std::filesystem::exists(file_path)) { - return false; - } - - auto parsed = recorder::RecordingReader::from_path(file_path); - - return parsed.has_value(); -} - - -struct OOPetrisRecordingReturnValueImpl { - bool is_error; - union { - OOPetrisRecordingInformation* information; - char* error; - } value; -}; - - -static OOPetrisRecordingReturnValue* -construct_error_from_cstr_impl(OOPetrisRecordingReturnValue* return_value, const char* value, size_t length) { - - auto* alloced_str = static_cast(malloc(length + 1)); - - if (alloced_str == nullptr) { - free(return_value); - return nullptr; - } - - strcpy(alloced_str, value); - - return_value->is_error = true; - return_value->value.error = alloced_str; - - return return_value; -} - -static OOPetrisRecordingReturnValue* -construct_error_from_cstr(OOPetrisRecordingReturnValue* return_value, const char* value) { - return construct_error_from_cstr_impl(return_value, value, strlen(value)); -} - -static OOPetrisRecordingReturnValue* -construct_error_from_string(OOPetrisRecordingReturnValue* return_value, const std::string& value) { - return construct_error_from_cstr_impl(return_value, value.c_str(), value.size()); -} - - -struct OOPetrisAdditionalInformationFieldImpl { - OOPetrisAdditionalInformationType type; - union { - char* string; - float float_v; - double double_v; - bool bool_v; - uint8_t u8; - int8_t i8; - uint32_t u32; - int32_t i32; - uint64_t u64; - int64_t i64; - OOPetrisAdditionalInformationField** vector; - } value; -}; - -struct OOPetrisAdditionalInformationImpl { - char* key; - OOPetrisAdditionalInformationField* value; -}; - -static void vector_of_value_free(OOPetrisAdditionalInformationField*** vector, size_t until_index); - -static OOPetrisAdditionalInformationField* information_value_to_c(const recorder::InformationValue& value) { - - - auto* return_value = - static_cast(malloc(sizeof(OOPetrisAdditionalInformationField))); - - - if (return_value == nullptr) { - free(return_value); - return nullptr; - } - - return std::visit( - helper::overloaded{ [return_value](const std::string& value) -> OOPetrisAdditionalInformationField* { - auto* string = static_cast(malloc(value.size() + 1)); - - if (string == nullptr) { - free(string); - free(return_value); - return nullptr; - } - - strcpy(string, value.c_str()); - - return_value->type = OOPetrisAdditionalInformationType_String; - return_value->value.string = string; - return return_value; - }, - [return_value](const float& value) -> OOPetrisAdditionalInformationField* { - return_value->type = OOPetrisAdditionalInformationType_Float; - return_value->value.float_v = value; - return return_value; - }, - [return_value](const double& value) -> OOPetrisAdditionalInformationField* { - return_value->type = OOPetrisAdditionalInformationType_Double; - return_value->value.double_v = value; - return return_value; - }, - [return_value](const bool& value) -> OOPetrisAdditionalInformationField* { - return_value->type = OOPetrisAdditionalInformationType_Bool; - return_value->value.bool_v = value; - return return_value; - }, - [return_value](const u8& value) { - return_value->type = OOPetrisAdditionalInformationType_U8; - return_value->value.u8 = value; - return return_value; - }, - [return_value](const i8& value) -> OOPetrisAdditionalInformationField* { - return_value->type = OOPetrisAdditionalInformationType_I8; - return_value->value.i8 = value; - return return_value; - }, - [return_value](const u32& value) { - return_value->type = OOPetrisAdditionalInformationType_U32; - return_value->value.u32 = value; - return return_value; - }, - [return_value](const i32& value) -> OOPetrisAdditionalInformationField* { - return_value->type = OOPetrisAdditionalInformationType_I32; - return_value->value.i32 = value; - return return_value; - }, - [return_value](const u64& value) { - return_value->type = OOPetrisAdditionalInformationType_U64; - return_value->value.u64 = value; - return return_value; - }, - [return_value](const i64& value) -> OOPetrisAdditionalInformationField* { - return_value->type = OOPetrisAdditionalInformationType_Float; - return_value->value.i64 = value; - return return_value; - }, - [return_value](const std::vector& value - ) -> OOPetrisAdditionalInformationField* { - OOPetrisAdditionalInformationField** fields = NULL; - - - stbds_arrsetlen(fields, value.size()); - - for (std::size_t i = 0; i < value.size(); ++i) { - auto* result = information_value_to_c(value.at(i)); - if (result == nullptr) { - vector_of_value_free(&fields, i); - free(return_value); - return nullptr; - } - fields[i] = result; - } - - return_value->type = OOPetrisAdditionalInformationType_Vector; - return_value->value.vector = fields; - - return return_value; - } }, - value.underlying() - ); -} - -static void free_additional_value_field(OOPetrisAdditionalInformationField** field) { - - auto* orig_field = *field; - - if (orig_field->type == OOPetrisAdditionalInformationType_String) { - free(orig_field->value.string); - } else if (orig_field->type == OOPetrisAdditionalInformationType_Vector) { - auto* vector = orig_field->value.vector; - vector_of_value_free(&vector, stbds_arrlenu(vector)); - } - - - free(*field); - *field = NULL; -} - - -static void vector_of_value_free(OOPetrisAdditionalInformationField*** vector, size_t until_index) { - - - for (size_t i = 0; i < until_index; ++i) { - free_additional_value_field(&(*vector)[i]); - } - - - stbds_arrfree(*vector); - *vector = NULL; -} - - -static OOPetrisAdditionalInformation* recording_reader_get_additional_information( - const recorder::AdditionalInformation& information -) { - - stbds_rand_seed(time(NULL)); - - OOPetrisAdditionalInformation* result = NULL; - - //NOTE: We use stbds_sh_new_strdup, so keys are automatically copied (malloced) and freed and we don't need to manage those - stbds_sh_new_strdup(result); - - - for (const auto& [key, value] : information) { - - auto* insert_value = information_value_to_c(value); - - stbds_shput(result, key.c_str(), insert_value); - } - - return result; -} - -const char** oopetris_additional_information_get_keys(OOPetrisAdditionalInformation* information) { - - const char** result_arr = NULL; - - const auto length = stbds_shlen(information); - - stbds_arrsetlen(result_arr, length); - - for (int i = 0; i < length; ++i) { - - result_arr[i] = information[i].key; - } - - - return result_arr; -} - -void oopetris_additional_information_keys_free(const char*** keys) { - stbds_arrfree(*keys); - *keys = NULL; -} - -const OOPetrisAdditionalInformationField* -oopetris_additional_information_get_field(OOPetrisAdditionalInformation* information, const char* key) { - - const auto index = stbds_shgeti(information, key); - - if (index < 0) { - return nullptr; - } - - return information[index].value; -} - - -OOPetrisAdditionalInformationType oopetris_additional_information_field_get_type( - const OOPetrisAdditionalInformationField* const field -) { - return field->type; -} - -const char* oopetris_additional_information_field_get_string(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_String); - return field->value.string; -} - -float oopetris_additional_information_field_get_float(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_Float); - return field->value.float_v; -} - -double oopetris_additional_information_field_get_double(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_Double); - return field->value.double_v; -} - - -bool oopetris_additional_information_field_get_bool(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_Bool); - return field->value.bool_v; -} - - -uint8_t oopetris_additional_information_field_get_u8(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_U8); - return field->value.u8; -} - - -int8_t oopetris_additional_information_field_get_i8(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_I8); - return field->value.i8; -} - - -uint32_t oopetris_additional_information_field_get_u32(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_U32); - return field->value.u32; -} - - -int32_t oopetris_additional_information_field_get_i32(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_I32); - return field->value.i32; -} - - -uint64_t oopetris_additional_information_field_get_u64(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_U64); - return field->value.u64; -} - - -int64_t oopetris_additional_information_field_get_i64(const OOPetrisAdditionalInformationField* const field) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_I64); - return field->value.i64; -} - - -const OOPetrisAdditionalInformationField* const* oopetris_additional_information_field_get_vector( - const OOPetrisAdditionalInformationField* const field -) { - assert(oopetris_additional_information_field_get_type(field) == OOPetrisAdditionalInformationType_Vector); - return field->value.vector; -} - - -static void oopetris_additional_information_free(OOPetrisAdditionalInformation** information) { - - - for (int i = 0; i < stbds_shlen(*information); ++i) { - - free_additional_value_field(&((*information)[i].value)); - } - - stbds_shfree(*information); - *information = NULL; -} - -static OOPetrisTetrionRecord record_to_c(const recorder::Record& record) { - return OOPetrisTetrionRecord{ .simulation_step_index = record.simulation_step_index, - .event = static_cast(record.event), - .tetrion_index = record.tetrion_index }; -} - -static OOPetrisMino mino_to_c(const Mino& mino) { - auto orig_pos = mino.position(); - - auto position = OOpetrisMinoPosition{ .x = orig_pos.x, .y = orig_pos.y }; - - return OOPetrisMino{ .position = position, .type = static_cast(mino.type()) }; -} - -static OOpetrisTetrionSnapshot snapshot_to_c(const TetrionSnapshot& snapshot) { - - - // convert mino_stack - - auto minos = snapshot.mino_stack().minos(); - - OOPetrisMino* mino_stack = NULL; - stbds_arrsetlen(mino_stack, minos.size()); - - for (std::size_t i = 0; i < minos.size(); ++i) { - mino_stack[i] = mino_to_c(minos.at(i)); - } - - - return OOpetrisTetrionSnapshot{ .level = snapshot.level(), - .mino_stack = mino_stack, - .score = snapshot.score(), - .simulation_step_index = snapshot.simulation_step_index(), - .lines_cleared = snapshot.lines_cleared(), - .tetrion_index = snapshot.tetrion_index() }; -} - -static OOPetrisTetrionHeader tetrion_header_to_c(const recorder::TetrionHeader& header) { - - - return OOPetrisTetrionHeader{ .seed = header.seed, .starting_level = header.starting_level }; -} - - -static OOPetrisRecordingInformation* recording_reader_to_c(const recorder::RecordingReader& value) { - - auto* return_value = static_cast(malloc(sizeof(OOPetrisRecordingInformation))); - - - if (return_value == nullptr) { - free(return_value); - return nullptr; - } - - return_value->version = recorder::Recording::current_supported_version_number; - - return_value->information = recording_reader_get_additional_information(value.information()); - if (return_value->information == nullptr) { - free(return_value); - return nullptr; - } - - // convert records - - auto records = value.records(); - - return_value->records = NULL; - stbds_arrsetlen(return_value->records, records.size()); - - for (std::size_t i = 0; i < records.size(); ++i) { - return_value->records[i] = record_to_c(records.at(i)); - } - - // convert snapshots - - auto snapshots = value.snapshots(); - - return_value->snapshots = NULL; - stbds_arrsetlen(return_value->snapshots, snapshots.size()); - - for (std::size_t i = 0; i < snapshots.size(); ++i) { - return_value->snapshots[i] = snapshot_to_c(snapshots.at(i)); - } - - // convert tetrion_headers - - auto tetrion_headers = value.tetrion_headers(); - - return_value->tetrion_headers = NULL; - stbds_arrsetlen(return_value->tetrion_headers, tetrion_headers.size()); - - for (std::size_t i = 0; i < tetrion_headers.size(); ++i) { - return_value->tetrion_headers[i] = tetrion_header_to_c(tetrion_headers.at(i)); - } - - return return_value; -} - - -OOPetrisRecordingReturnValue* oopetris_get_recording_information(const char* file_path) { - - auto* return_value = static_cast(malloc(sizeof(OOPetrisRecordingReturnValue))); - - if (return_value == nullptr) { - free(return_value); - return nullptr; - } - - if (file_path == nullptr) { - return construct_error_from_cstr(return_value, "FilePath is NULL"); - } - - - if (not std::filesystem::exists(file_path)) { - std::string error = "File '"; - error += file_path; - error += "' doesn't exist!"; - - return construct_error_from_string(return_value, error); - } - - auto parsed = recorder::RecordingReader::from_path(file_path); - - if (not parsed.has_value()) { - std::string error = "An error occurred during parsing of the recording file '"; - error += file_path; - error += "': "; - error += parsed.error(); - - return construct_error_from_string(return_value, error); - } - - const auto recording_reader = std::move(parsed.value()); - - OOPetrisRecordingInformation* information = recording_reader_to_c(recording_reader); - - if (information == nullptr) { - return construct_error_from_cstr(return_value, "Failure in internal conversion"); - } - - return_value->is_error = false; - return_value->value.information = information; - return return_value; -} - -bool oopetris_is_error(OOPetrisRecordingReturnValue* value) { - return value->is_error; -} - -const char* oopetris_get_error(OOPetrisRecordingReturnValue* value) { - return value->value.error; -} - -OOPetrisRecordingInformation* oopetris_get_information(OOPetrisRecordingReturnValue* value) { - return value->value.information; -} - -void oopetris_free_recording_information(OOPetrisRecordingInformation** information) { - - oopetris_additional_information_free(&((*information)->information)); - - stbds_arrfree((*information)->records); - - - for (std::size_t i = 0; i < stbds_arrlenu((*information)->snapshots); ++i) { - const auto* mino_stack = (*information)->snapshots[i].mino_stack; - stbds_arrfree(mino_stack); - } - - stbds_arrfree((*information)->snapshots); - - stbds_arrfree((*information)->tetrion_headers); - - free(*information); - *information = nullptr; -} - -void oopetris_free_recording_value_only(OOPetrisRecordingReturnValue** information) { - free(*information); - *information = nullptr; -} - -void oopetris_free_recording_value_whole(OOPetrisRecordingReturnValue** information) { - if (oopetris_is_error(*information)) { - free((*information)->value.error); - } else { - oopetris_free_recording_information(&((*information)->value.information)); - } - - oopetris_free_recording_value_only(information); -} - -const char* oopetris_get_lib_version(void) { - return utils::version(); -} - -OOPetrisGridProperties* oopetris_get_grid_properties(void) { - auto* properties = static_cast(malloc(sizeof(OOPetrisGridProperties))); - if (properties == nullptr) { - return nullptr; - } - - properties->height = grid::height_in_tiles; - properties->width = grid::width_in_tiles; - - return properties; -} - - -void oopetris_free_grid_properties(OOPetrisGridProperties** properties) { - free(*properties); - *properties = nullptr; -} diff --git a/wrapper/c/subprojects/criterion.wrap b/wrapper/c/subprojects/criterion.wrap deleted file mode 100644 index 947a4128..00000000 --- a/wrapper/c/subprojects/criterion.wrap +++ /dev/null @@ -1,8 +0,0 @@ -[wrap-git] -url = https://github.com/Snaipe/Criterion.git -revision = master -depth = 1 - - -[provide] -criterion = criterion diff --git a/wrapper/c/tests/files/correct.rec b/wrapper/c/tests/files/correct.rec deleted file mode 100644 index 4d1a9cea..00000000 Binary files a/wrapper/c/tests/files/correct.rec and /dev/null differ diff --git a/wrapper/c/tests/files/incorrect.rec b/wrapper/c/tests/files/incorrect.rec deleted file mode 100644 index 9dcd1720..00000000 Binary files a/wrapper/c/tests/files/incorrect.rec and /dev/null differ diff --git a/wrapper/c/tests/get_recording_information.c b/wrapper/c/tests/get_recording_information.c deleted file mode 100644 index fd51c683..00000000 --- a/wrapper/c/tests/get_recording_information.c +++ /dev/null @@ -1,75 +0,0 @@ -#include -#include - -#include "oopetris_wrapper.h" - -Test(GetRecordingInformation, NullptrAsArgument) { - OOPetrisRecordingReturnValue* return_value = oopetris_get_recording_information(NULL); - cr_assert(return_value != NULL, "NULL is supported and returns an error"); - - - const bool is_error = oopetris_is_error(return_value); - - cr_assert(is_error, "Non existent recordings file is error"); - - const char* error = oopetris_get_error(return_value); - - char* dynamic_error = malloc(strlen(error) + 1); - strcpy(dynamic_error, error); - - cr_assert(eq(str, dynamic_error, "FilePath is NULL")); - free(dynamic_error); -} - - -Test(GetRecordingInformation, NonExistentFile) { - OOPetrisRecordingReturnValue* return_value = oopetris_get_recording_information("./NON_EXISTENT_FILE"); - cr_assert(return_value != NULL, "Non existent recordings file is detected correctly"); - - const bool is_error = oopetris_is_error(return_value); - - cr_assert(is_error, "Non existent recordings file is error"); - - const char* error = oopetris_get_error(return_value); - - char* dynamic_error = malloc(strlen(error) + 1); - strcpy(dynamic_error, error); - - cr_assert(eq(str, dynamic_error, "File './NON_EXISTENT_FILE' doesn't exist!")); - free(dynamic_error); -} - -Test(GetRecordingInformation, IncorrectFile) { - - OOPetrisRecordingReturnValue* return_value = oopetris_get_recording_information("./incorrect.rec"); - cr_assert(return_value != NULL, "Incorrect recordings file is detected correctly"); - - const bool is_error = oopetris_is_error(return_value); - - cr_assert(is_error, "Incorrect recordings file is error"); - - const char* error = oopetris_get_error(return_value); - - char* dynamic_error = malloc(strlen(error) + 1); - strcpy(dynamic_error, error); - - cr_assert( - eq(str, dynamic_error, - "An error occurred during parsing of the recording file './incorrect.rec': magic file bytes are not " - "correct, this is either an old format or no recording at all") - ); - free(dynamic_error); -} - - -Test(GetRecordingInformation, CorrectFile) { - - OOPetrisRecordingReturnValue* return_value = oopetris_get_recording_information("./correct.rec"); - cr_assert(return_value != NULL, "Correct recordings file is detected correctly"); - - const bool is_not_error = !oopetris_is_error(return_value); - - const char* maybe_error = is_not_error ? "" : oopetris_get_error(return_value); - - cr_assert(is_not_error, "Correct recordings file isn't an error: %s", maybe_error); -} diff --git a/wrapper/c/tests/information.c b/wrapper/c/tests/information.c deleted file mode 100644 index ba28c3c9..00000000 --- a/wrapper/c/tests/information.c +++ /dev/null @@ -1,28 +0,0 @@ -#include -#include -#include - -#include "oopetris_wrapper.h" - -// this tests likely fail, if we update the lib, but this failure on version bump serves as remainder,to check, if other things need changing too, since wrapper may become outdated otherwise - -Test(Information, LibVersion) { - const char* lib_version = oopetris_get_lib_version(); - char* dynamic_lib_version = malloc(strlen(lib_version) + 1); - - strcpy(dynamic_lib_version, lib_version); - - cr_assert(eq(str, dynamic_lib_version, "0.5.6")); - free(dynamic_lib_version); -} - - -Test(Information, GridProperties) { - OOPetrisGridProperties* properties = oopetris_get_grid_properties(); - cr_assert(properties != NULL, "returned properties are non-NULL"); - cr_assert(eq(u32, properties->height, 20)); - cr_assert(eq(u32, properties->width, 10)); - - oopetris_free_grid_properties(&properties); - cr_assert(properties == NULL, "properties are freed correctly"); -} diff --git a/wrapper/c/tests/is_recording_file.c b/wrapper/c/tests/is_recording_file.c deleted file mode 100644 index 3168ad42..00000000 --- a/wrapper/c/tests/is_recording_file.c +++ /dev/null @@ -1,24 +0,0 @@ -#include - -#include "oopetris_wrapper.h" - -Test(IsRecordingFile, NullptrAsArgument) { - bool is_recordings_file = oopetris_is_recording_file(NULL); - cr_assert(!is_recordings_file, "NULL is supported and doesn't crash"); -} - - -Test(IsRecordingFile, NonExistentFile) { - bool is_recordings_file = oopetris_is_recording_file("./NON_EXISTENT_FILE"); - cr_assert(!is_recordings_file, "Non existent recordings file is detected correctly"); -} - -Test(IsRecordingFile, IncorrectFile) { - bool is_recordings_file = oopetris_is_recording_file("./incorrect.rec"); - cr_assert(!is_recordings_file, "Incorrect recordings file is detected correctly"); -} - -Test(IsRecordingFile, CorrectFile) { - bool is_recordings_file = oopetris_is_recording_file("./correct.rec"); - cr_assert(is_recordings_file, "Correct recordings file is detected correctly"); -} diff --git a/wrapper/c/tests/meson.build b/wrapper/c/tests/meson.build deleted file mode 100644 index fb518bd8..00000000 --- a/wrapper/c/tests/meson.build +++ /dev/null @@ -1,31 +0,0 @@ -test_deps = [] - -test_src = [ - files( - 'get_recording_information.c', - 'information.c', - 'is_recording_file.c', - ## 'stb_ds.c', this test don't work atm - ), -] - -test_deps += dependency('criterion') - -tests = executable( - 'tests', - test_src, - dependencies: [test_deps, liboopetris_c_wrapper_dep], - override_options: { - 'warning_level': '3', - 'werror': true, - 'b_coverage': false, - }, -) - -test( - 'tests', - tests, - protocol: 'tap', ## use 'exitcode' to get better messages, of what exactly the failure was - workdir: meson.project_source_root() / 'tests' / 'files', - args: ['--tap'], ## remove '--tap' and add '--verbose', '--full-stats' to get better failure messages -) diff --git a/wrapper/c/tests/stb_ds.c b/wrapper/c/tests/stb_ds.c deleted file mode 100644 index 37073e9e..00000000 --- a/wrapper/c/tests/stb_ds.c +++ /dev/null @@ -1,34 +0,0 @@ - - -#include - -#if defined(__GNUC__) -// these tests have a shit-ton of errors xD -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-variable" -#pragma GCC diagnostic ignored "-Wmissing-braces" -#pragma GCC diagnostic ignored "-Wint-conversion" -#pragma GCC diagnostic ignored "-Wunused-value" -#pragma GCC diagnostic ignored "-Wsign-compare" -#endif - - -void assert_impl(bool x) { - cr_assert(x); -} - -#define STBDS_UNIT_TESTS -#define STBDS_ASSERT(x) assert_impl(x); - - -#include "./thirdparty/stb_ds.h" - - -#if defined(__GNUC__) -#pragma GCC diagnostic pop -#endif - - -Test(StbDs, UniTests) { - stbds_unit_tests(); -} diff --git a/wrapper/javascript b/wrapper/javascript new file mode 160000 index 00000000..16c21a69 --- /dev/null +++ b/wrapper/javascript @@ -0,0 +1 @@ +Subproject commit 16c21a69aff9e3431e7cec74116778712e588f2c diff --git a/wrapper/javascript/.gitignore b/wrapper/javascript/.gitignore deleted file mode 100644 index adcdd192..00000000 --- a/wrapper/javascript/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -/build/ - -node_modules/ - -package-lock.json - -/dist -/prebuilds/ diff --git a/wrapper/javascript/.npmignore b/wrapper/javascript/.npmignore deleted file mode 100644 index daf03f64..00000000 --- a/wrapper/javascript/.npmignore +++ /dev/null @@ -1,12 +0,0 @@ -node_modules -lib/binding -build -tests -*.tgz -npm-debug.log -.npmignore -.gitignore -.helper -jest.config.ts -tsconfig.json -src/ts/ diff --git a/wrapper/javascript/.npmrc b/wrapper/javascript/.npmrc deleted file mode 100644 index 134dfd1e..00000000 --- a/wrapper/javascript/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://verdaccio.totto.lt/ diff --git a/wrapper/javascript/README.md b/wrapper/javascript/README.md deleted file mode 100644 index 1015e4ec..00000000 --- a/wrapper/javascript/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# OOpetris Node.js Wrapper - - -## What is this? - -This wraps oopetris functionality for Node.js - - - - - -## Platform support - -We officially support Linux, Windows and MacOS, if any error occurs regarding those platform, feel free to open an issue - -## How to obtain - -A prebuilt package is available and can be obtained, by using [Totto's private node package registry](https://verdaccio.totto.lt/) - - -## How to build it yourself - -This uses node-gyp to build the wrapper, you need to install `libboopetris_recordings` to be able to use this. diff --git a/wrapper/javascript/binding.gyp b/wrapper/javascript/binding.gyp deleted file mode 100644 index 39745b7b..00000000 --- a/wrapper/javascript/binding.gyp +++ /dev/null @@ -1,88 +0,0 @@ -# type: ignore -{ - "targets": [ - { - "target_name": "oopetris", - "cflags_cc": [ - "-std=c++23", - "-Wall", - "-Wextra", - "-Wno-unused-parameter", - "-O3", - "-Werror", - "-Wpedantic", - "-fexceptions", - "-frtti", - "-Wno-cast-function-type", # since nan.h -> node.h has some warnings regarding that - " node.h has some warnings regarding that - " node.h has some warnings regarding that - ".a via some sed magic - ], - }, - }, - } - ], -} diff --git a/wrapper/javascript/jest.config.ts b/wrapper/javascript/jest.config.ts deleted file mode 100644 index 90a1038b..00000000 --- a/wrapper/javascript/jest.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { JestConfigWithTsJest } from "ts-jest" - -const jestConfig: JestConfigWithTsJest = { - preset: "ts-jest", - testEnvironment: "node", - testTimeout: 5000, -} - -export default jestConfig diff --git a/wrapper/javascript/package.json b/wrapper/javascript/package.json deleted file mode 100644 index 70b52b1a..00000000 --- a/wrapper/javascript/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "oopetris", - "version": "1.0.1", - "description": "Node js wrapper for oopetris", - "gypfile": true, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "files": [ - "dist/", - "prebuilds/", - "src/cpp/", - "binding.gyp", - "package.json", - "README.md" - ], - "private": false, - "scripts": { - "install": "node-gyp-build", - "build": "npm run build:gyp && npm run compile", - "build:gyp": "prebuildify -t 18.20.3 -t 19.9.0 -t 20.13.1 -t 21.7.3 -t 22.2.0 --strip", - "build:debug": "prebuildify -t 18.20.3 -t 19.9.0 -t 20.13.1 -t 21.7.3 -t 22.2.0 --debug", - "compile": "npm run build:tsc", - "build:tsc": "tsc", - "test": "npx jest", - "build:test": "npm run build && npm run test", - "publish:package": "npm run build:test && npm publish --tag latest --access public" - }, - "keywords": [ - "oopetris", - "cpp", - "node-gyp" - ], - "author": { - "name": "Totto16", - "url": "https://github.com/Totto16" - }, - "license": "MIT", - "engines": { - "node": "^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0" - }, - "os": [ - "darwin", - "linux", - "win32" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/OpenBrickProtocolFoundation/oopetris.git" - }, - "dependencies": { - "node-gyp-build": "^4.8.1" - }, - "devDependencies": { - "@types/jest": "^29.5.12", - "jest": "^29.7.0", - "nan": "^2.19.0", - "prebuildify": "^6.0.2", - "ts-jest": "^29.1.3", - "ts-node": "^10.9.2", - "typescript": "^5.4.5" - } -} diff --git a/wrapper/javascript/src/cpp/wrapper.cpp b/wrapper/javascript/src/cpp/wrapper.cpp deleted file mode 100644 index 2e29ed87..00000000 --- a/wrapper/javascript/src/cpp/wrapper.cpp +++ /dev/null @@ -1,148 +0,0 @@ -#ifdef _WIN32 -#ifndef NOMINMAX -#define NOMINMAX -#endif -#endif - -#if defined(__GNUC__) & !defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wtemplate-id-cdtor" -#endif - -#include - -#if defined(__GNUC__) & !defined(__clang__) -#pragma GCC diagnostic pop -#endif - - -#include -#include - -NAN_METHOD(isRecordingFile) { - - if (info.Length() != 1) { - info.GetIsolate()->ThrowException(Nan::TypeError("Wrong number of arguments")); - return; - } - - if (!info[0]->IsString()) { - info.GetIsolate()->ThrowException(Nan::TypeError("First argument must be string")); - return; - } - - auto filePath = std::string{ *Nan::Utf8String(info[0]) }; - - if (not std::filesystem::exists(filePath)) { - - info.GetReturnValue().Set(Nan::False()); - return; - } - - auto parsed = recorder::RecordingReader::from_path(filePath); - - if (not parsed.has_value()) { - info.GetReturnValue().Set(Nan::False()); - return; - } - - info.GetReturnValue().Set(Nan::True()); - return; -} - -NAN_METHOD(getInformation) { - - if (info.Length() != 1) { - info.GetIsolate()->ThrowException(Nan::TypeError("Wrong number of arguments")); - return; - } - - if (!info[0]->IsString()) { - info.GetIsolate()->ThrowException(Nan::TypeError("First argument must be string")); - return; - } - - auto filePath = std::string{ *Nan::Utf8String(info[0]) }; - - if (not std::filesystem::exists(filePath)) { - std::string error = "File '"; - error += filePath; - error += "' doesn't exist!"; - - info.GetIsolate()->ThrowException(Nan::Error(Nan::New(error).ToLocalChecked())); - return; - } - - auto parsed = recorder::RecordingReader::from_path(filePath); - - if (not parsed.has_value()) { - std::string error = "An error occurred during parsing of the recording file '"; - error += filePath; - error += "': "; - error += parsed.error(); - - info.GetIsolate()->ThrowException(Nan::Error(Nan::New(error).ToLocalChecked())); - return; - } - - const auto recording_reader = std::move(parsed.value()); - - auto json_value = json::try_convert_to_json(recording_reader); - - if (not json_value.has_value()) { - std::string error = "An error occurred during converting to json:"; - error += json_value.error(); - - info.GetIsolate()->ThrowException(Nan::Error(Nan::New(error).ToLocalChecked())); - return; - } - - const auto result_string_json = json_value->dump(-1, ' ', false); - - v8::Local js_json_string = Nan::New(result_string_json).ToLocalChecked(); - - Nan::JSON NanJSON; - Nan::MaybeLocal result = NanJSON.Parse(js_json_string); - if (!result.IsEmpty()) { - v8::Local val = result.ToLocalChecked(); - info.GetReturnValue().Set(val); - return; - } - - info.GetIsolate()->ThrowException(Nan::Error("Failed to parse internal JSON structure!")); - return; -} - -NAN_MODULE_INIT(InitAll) { - Nan::Set( - target, Nan::New("isRecordingFile").ToLocalChecked(), - Nan::GetFunction(Nan::New(isRecordingFile)).ToLocalChecked() - ); - - Nan::Set( - target, Nan::New("getInformation").ToLocalChecked(), - Nan::GetFunction(Nan::New(getInformation)).ToLocalChecked() - ); - - Nan::Set(target, Nan::New("version").ToLocalChecked(), Nan::New(utils::version()).ToLocalChecked()); - - v8::Local properties = Nan::New(); - - std::vector> properties_vector{ - { "height", grid::height_in_tiles }, - { "width", grid::width_in_tiles } - }; - - v8::Local grid_properties = Nan::New(); - - for (const auto& [key, value] : properties_vector) { - v8::Local keyValue = Nan::New(key).ToLocalChecked(); - Nan::Set(grid_properties, keyValue, Nan::New(value)).Check(); - } - - Nan::Set(properties, Nan::New("gridProperties").ToLocalChecked(), grid_properties).Check(); - - Nan::Set(target, Nan::New("properties").ToLocalChecked(), properties); -} - -NODE_MODULE(RecordingsWrapper, InitAll) diff --git a/wrapper/javascript/src/ts/index.ts b/wrapper/javascript/src/ts/index.ts deleted file mode 100644 index 008d6bf4..00000000 --- a/wrapper/javascript/src/ts/index.ts +++ /dev/null @@ -1,108 +0,0 @@ -import fs from "fs" -import path from "path" - -const rootDir = path.join(__dirname, "..", "..") -const oopetris = require("node-gyp-build")(rootDir) - -export type AdditionalInformation = Record - -export type InputEvent = - | "RotateLeftPressed" - | "RotateRightPressed" - | "MoveLeftPressed" - | "MoveRightPressed" - | "MoveDownPressed" - | "DropPressed" - | "HoldPressed" - | "RotateLeftReleased" - | "RotateRightReleased" - | "MoveLeftReleased" - | "MoveRightReleased" - | "MoveDownReleased" - | "DropReleased" - | "HoldReleased" - -export type TetrionRecord = { - event: InputEvent - simulation_step_index: number - tetrion_index: number -} - -export type MinoPosition = { - x: number - y: number -} - -export type TetrominoType = "I" | "J" | "L" | "O" | "S" | "T" | "Z" - -export type Mino = { - position: MinoPosition - type: TetrominoType -} - -export type TetrionSnapshot = { - level: number - lines_cleared: number - mino_stack: Mino[] - score: number - simulation_step_index: number - tetrion_index: number -} - -export type TetrionHeader = { - seed: number - starting_level: number -} - -export type RecordingInformation = { - information: AdditionalInformation - records: TetrionRecord[] - snapshots: TetrionSnapshot[] - tetrion_headers: TetrionHeader[] - version: number -} - -export type GridProperties = { - height: number - width: number -} - -export type RecordingsProperties = { - gridProperties: GridProperties -} - -export class RecordingsUtility { - static isRecordingFile(file: string): boolean { - try { - // this throws, when file is not an string or not there at all, just be safe for JS land - return oopetris.isRecordingFile(file) - } catch (_err) { - return false - } - } - - static getInformation(file: string): null | RecordingInformation { - if (!fs.existsSync(file)) { - return null - } - - try { - if (!RecordingsUtility.isRecordingFile(file)) { - return null - } - - // this throws, when file is not an string, not there at all, or some other error regarding serialization from c++ land to JS land occurs, just be safe for JS land - return oopetris.getInformation(file) - } catch (_err) { - return null - } - } - - static get properties(): GridProperties { - return oopetris.properties - } - - static get version(): string { - return oopetris.version - } -} diff --git a/wrapper/javascript/tests/files/correct.rec b/wrapper/javascript/tests/files/correct.rec deleted file mode 100644 index 4d1a9cea..00000000 Binary files a/wrapper/javascript/tests/files/correct.rec and /dev/null differ diff --git a/wrapper/javascript/tests/files/correct.serialized.json b/wrapper/javascript/tests/files/correct.serialized.json deleted file mode 100644 index a2253665..00000000 --- a/wrapper/javascript/tests/files/correct.serialized.json +++ /dev/null @@ -1,6725 +0,0 @@ -{ - "information": { - "date": 1710635321, - "mode": "single_player", - "platform": "pc" - }, - "records": [ - { - "event": "MoveRightPressed", - "simulation_step_index": 123, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 133, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 136, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 145, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 150, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 157, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 161, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 181, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 186, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 190, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 198, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 208, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 214, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 222, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 252, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 257, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 265, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 273, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 278, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 288, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 293, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 308, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 313, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 318, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 325, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 342, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 350, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 354, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 356, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 357, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 361, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 365, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 365, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 371, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 371, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 373, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 376, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 378, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 378, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 383, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 383, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 383, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 388, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 388, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 389, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 393, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 393, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 393, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 398, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 400, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 400, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 402, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 405, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 432, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 437, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 442, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 446, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 450, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 457, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 457, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 485, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 488, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 542, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 548, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 569, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 592, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 599, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 621, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 632, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 638, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 638, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 645, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 645, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 667, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 689, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 697, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 697, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 728, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 735, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 737, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 751, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 756, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 763, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 769, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 770, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 776, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 779, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 781, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 789, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 802, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 807, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 813, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 819, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 833, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 839, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 845, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 852, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 870, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 878, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 895, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 897, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 902, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 913, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 920, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 936, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 938, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 960, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 967, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 969, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 971, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 986, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 992, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1000, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1009, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1044, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1050, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1068, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1074, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1081, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1090, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1112, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1116, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1155, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1165, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1179, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1188, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1214, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1222, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1229, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1238, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1242, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1250, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1264, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1270, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1281, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1287, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1305, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1314, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1322, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1337, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1345, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1351, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1364, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1371, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1378, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1384, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1393, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1400, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1415, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1420, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1425, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1440, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1443, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1454, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1461, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1468, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1473, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1483, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1487, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1491, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1496, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1502, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1508, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1513, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1518, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1523, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1529, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1539, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1547, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1553, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1558, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1562, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1567, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1575, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1590, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1597, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1599, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1602, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1615, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1619, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1625, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1639, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1647, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1663, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1664, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1671, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1690, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1692, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1695, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1698, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1707, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1716, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1723, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1723, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1728, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1730, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1748, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1753, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1779, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1785, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1799, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1802, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1804, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1824, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1826, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1831, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1839, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1846, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 1858, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 1859, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1885, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1889, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1903, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1908, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1924, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1931, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 1935, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 1941, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 1962, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 1979, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 1985, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 1994, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2005, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2007, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 2026, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 2031, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2036, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2043, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2050, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2056, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2075, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2079, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2081, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2088, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2107, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2117, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2124, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2130, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2141, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2149, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2161, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2168, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 2174, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 2180, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2185, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2196, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2201, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2202, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2203, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2223, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2240, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2247, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2261, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2267, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 2271, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 2277, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2292, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2299, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2308, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2314, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2334, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2343, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 2353, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 2359, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2361, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2368, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2376, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2384, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2391, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2411, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2419, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2430, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 2431, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 2437, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2463, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2464, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2469, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2487, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2508, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2515, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 2609, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 2617, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2630, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2651, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 2667, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 2702, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2702, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2718, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 2731, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 2738, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 2786, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 2811, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 2823, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 2832, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 2840, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 2846, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 2853, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 2859, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 2864, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 2869, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 2876, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 2885, - "tetrion_index": 0 - }, - { - "event": "MoveDownPressed", - "simulation_step_index": 2896, - "tetrion_index": 0 - }, - { - "event": "MoveDownReleased", - "simulation_step_index": 2903, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2955, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2960, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2977, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 2983, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 2996, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3003, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3013, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3020, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3039, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3051, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3057, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3072, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3078, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3088, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3102, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3109, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 3120, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 3127, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3134, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3142, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3151, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3160, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3162, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3168, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3184, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3192, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3201, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3230, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3232, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3240, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3251, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3268, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3272, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3278, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 3284, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 3291, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3306, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3318, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3325, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3332, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3336, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3341, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3356, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3385, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3385, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3390, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3405, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3411, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3415, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3430, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3460, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3467, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3474, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3481, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3509, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3517, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3531, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3538, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3546, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3552, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3556, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3576, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 3595, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 3603, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3608, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3617, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3625, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3636, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3638, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3643, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3652, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3661, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3680, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3689, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3698, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3705, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3710, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3715, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3722, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3729, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3731, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3737, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3751, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3760, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3763, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3768, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3784, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3789, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3823, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3829, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 3845, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 3852, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 3918, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 3924, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 3948, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 3953, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 3965, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 3971, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 4036, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 4043, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4069, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4075, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4079, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4090, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4094, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4096, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4103, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4108, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4124, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4129, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 4138, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 4144, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4160, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4181, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4198, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4206, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 4216, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 4223, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4227, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4237, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4241, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4246, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4251, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4258, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4266, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4272, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4279, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4289, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 4291, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 4298, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4350, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4357, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 4372, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 4379, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4402, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4407, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4418, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4422, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 4433, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 4439, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4450, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4458, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4465, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4473, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4473, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4481, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4489, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4501, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4502, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4505, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4540, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4547, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4553, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4571, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 4578, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 4584, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4593, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4596, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4604, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4620, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4629, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4636, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4642, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4642, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 4665, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 4671, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4673, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4688, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4708, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4715, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4729, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4733, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 4740, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 4744, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4753, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4766, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4774, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4779, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4780, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4788, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4804, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4812, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4820, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4831, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4839, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4844, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4855, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4863, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4870, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4876, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 4885, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 4892, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4900, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4908, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 4916, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 4925, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4949, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4956, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4960, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4968, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4975, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 4980, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4982, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 4986, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 4988, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 4995, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5012, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5019, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5025, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5039, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5043, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5043, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5048, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5056, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5063, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5073, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5073, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5080, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5104, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5111, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5116, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5120, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5132, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5138, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5148, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5154, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5159, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5166, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5168, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5177, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5185, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5199, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5202, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5205, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5227, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5239, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5251, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5272, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 5282, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 5290, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5296, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5308, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5309, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5315, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5322, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5327, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5336, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5341, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5353, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5359, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5383, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5395, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5395, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5401, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5414, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5427, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5429, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5433, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 5456, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 5463, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5475, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5506, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5506, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5513, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5530, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5538, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5547, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5559, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5566, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5573, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5592, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5600, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5616, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5621, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5631, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5637, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5650, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5657, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5683, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5690, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5698, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5707, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5721, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5731, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5760, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5766, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5769, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5778, - "tetrion_index": 0 - }, - { - "event": "HoldPressed", - "simulation_step_index": 5801, - "tetrion_index": 0 - }, - { - "event": "HoldReleased", - "simulation_step_index": 5807, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5812, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5837, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5842, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5849, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 5857, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 5864, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5867, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 5875, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5889, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5896, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5902, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5913, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 5944, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 5950, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 5956, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 5976, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 5982, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 6001, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 6023, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 6023, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 6031, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 6045, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6045, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6052, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 6062, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 6072, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 6077, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6092, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 6093, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6098, - "tetrion_index": 0 - }, - { - "event": "RotateRightPressed", - "simulation_step_index": 6133, - "tetrion_index": 0 - }, - { - "event": "RotateRightReleased", - "simulation_step_index": 6141, - "tetrion_index": 0 - }, - { - "event": "MoveLeftPressed", - "simulation_step_index": 6142, - "tetrion_index": 0 - }, - { - "event": "MoveLeftReleased", - "simulation_step_index": 6149, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6162, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6169, - "tetrion_index": 0 - }, - { - "event": "MoveRightPressed", - "simulation_step_index": 6182, - "tetrion_index": 0 - }, - { - "event": "MoveRightReleased", - "simulation_step_index": 6189, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6212, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6218, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6223, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6227, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6233, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6236, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6242, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6246, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6252, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6255, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6261, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6264, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6268, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6272, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6277, - "tetrion_index": 0 - }, - { - "event": "DropReleased", - "simulation_step_index": 6281, - "tetrion_index": 0 - }, - { - "event": "DropPressed", - "simulation_step_index": 6287, - "tetrion_index": 0 - } - ], - "snapshots": [ - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" } - ], - "score": 56, - "simulation_step_index": 181, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" } - ], - "score": 156, - "simulation_step_index": 356, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" } - ], - "score": 224, - "simulation_step_index": 371, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" } - ], - "score": 288, - "simulation_step_index": 383, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" } - ], - "score": 344, - "simulation_step_index": 393, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" } - ], - "score": 416, - "simulation_step_index": 432, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" } - ], - "score": 468, - "simulation_step_index": 442, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 11 }, "type": "J" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 1, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "J" } - ], - "score": 512, - "simulation_step_index": 450, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 11 }, "type": "J" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 1, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "J" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" } - ], - "score": 556, - "simulation_step_index": 485, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 11 }, "type": "J" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 1, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "J" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" } - ], - "score": 612, - "simulation_step_index": 621, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 11 }, "type": "J" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 1, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "J" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" } - ], - "score": 664, - "simulation_step_index": 689, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 0, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 11 }, "type": "J" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 1, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "J" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 12 }, "type": "T" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" } - ], - "score": 708, - "simulation_step_index": 763, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 1, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 11 }, "type": "L" }, - { "position": { "x": 8, "y": 12 }, "type": "L" } - ], - "score": 780, - "simulation_step_index": 895, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 1, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 11 }, "type": "L" }, - { "position": { "x": 8, "y": 12 }, "type": "L" }, - { "position": { "x": 1, "y": 11 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 2, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 13 }, "type": "T" } - ], - "score": 804, - "simulation_step_index": 1155, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 1, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 11 }, "type": "L" }, - { "position": { "x": 8, "y": 12 }, "type": "L" }, - { "position": { "x": 1, "y": 11 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 2, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" } - ], - "score": 852, - "simulation_step_index": 1214, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 1, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 11 }, "type": "L" }, - { "position": { "x": 8, "y": 12 }, "type": "L" }, - { "position": { "x": 1, "y": 11 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 2, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 11 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 13 }, "type": "S" } - ], - "score": 892, - "simulation_step_index": 1264, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 1, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 11 }, "type": "L" }, - { "position": { "x": 8, "y": 12 }, "type": "L" }, - { "position": { "x": 1, "y": 11 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 2, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 11 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 10 }, "type": "J" }, - { "position": { "x": 7, "y": 10 }, "type": "J" }, - { "position": { "x": 7, "y": 11 }, "type": "J" }, - { "position": { "x": 7, "y": 12 }, "type": "J" } - ], - "score": 924, - "simulation_step_index": 1364, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 1, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 11 }, "type": "L" }, - { "position": { "x": 8, "y": 12 }, "type": "L" }, - { "position": { "x": 1, "y": 11 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 2, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 11 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 10 }, "type": "J" }, - { "position": { "x": 7, "y": 10 }, "type": "J" }, - { "position": { "x": 7, "y": 11 }, "type": "J" }, - { "position": { "x": 7, "y": 12 }, "type": "J" }, - { "position": { "x": 3, "y": 10 }, "type": "L" }, - { "position": { "x": 3, "y": 11 }, "type": "L" }, - { "position": { "x": 3, "y": 12 }, "type": "L" }, - { "position": { "x": 4, "y": 12 }, "type": "L" } - ], - "score": 960, - "simulation_step_index": 1415, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 1, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 11 }, "type": "L" }, - { "position": { "x": 8, "y": 12 }, "type": "L" }, - { "position": { "x": 1, "y": 11 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 2, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 11 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 10 }, "type": "J" }, - { "position": { "x": 7, "y": 10 }, "type": "J" }, - { "position": { "x": 7, "y": 11 }, "type": "J" }, - { "position": { "x": 7, "y": 12 }, "type": "J" }, - { "position": { "x": 3, "y": 10 }, "type": "L" }, - { "position": { "x": 3, "y": 11 }, "type": "L" }, - { "position": { "x": 3, "y": 12 }, "type": "L" }, - { "position": { "x": 4, "y": 12 }, "type": "L" }, - { "position": { "x": 7, "y": 8 }, "type": "O" }, - { "position": { "x": 8, "y": 8 }, "type": "O" }, - { "position": { "x": 7, "y": 9 }, "type": "O" }, - { "position": { "x": 8, "y": 9 }, "type": "O" } - ], - "score": 984, - "simulation_step_index": 1518, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 2, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 12 }, "type": "L" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 11 }, "type": "J" }, - { "position": { "x": 7, "y": 11 }, "type": "J" }, - { "position": { "x": 7, "y": 12 }, "type": "J" }, - { "position": { "x": 3, "y": 11 }, "type": "L" }, - { "position": { "x": 3, "y": 12 }, "type": "L" }, - { "position": { "x": 7, "y": 9 }, "type": "O" }, - { "position": { "x": 8, "y": 9 }, "type": "O" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 8, "y": 10 }, "type": "O" }, - { "position": { "x": 9, "y": 11 }, "type": "I" }, - { "position": { "x": 9, "y": 12 }, "type": "I" }, - { "position": { "x": 9, "y": 13 }, "type": "I" } - ], - "score": 1064, - "simulation_step_index": 1553, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 2, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 13 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 13 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "T" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 12 }, "type": "L" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 11 }, "type": "J" }, - { "position": { "x": 7, "y": 11 }, "type": "J" }, - { "position": { "x": 7, "y": 12 }, "type": "J" }, - { "position": { "x": 3, "y": 11 }, "type": "L" }, - { "position": { "x": 3, "y": 12 }, "type": "L" }, - { "position": { "x": 7, "y": 9 }, "type": "O" }, - { "position": { "x": 8, "y": 9 }, "type": "O" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 8, "y": 10 }, "type": "O" }, - { "position": { "x": 9, "y": 11 }, "type": "I" }, - { "position": { "x": 9, "y": 12 }, "type": "I" }, - { "position": { "x": 9, "y": 13 }, "type": "I" }, - { "position": { "x": 5, "y": 10 }, "type": "Z" }, - { "position": { "x": 5, "y": 11 }, "type": "Z" }, - { "position": { "x": 4, "y": 11 }, "type": "Z" }, - { "position": { "x": 4, "y": 12 }, "type": "Z" } - ], - "score": 1100, - "simulation_step_index": 1615, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 3, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "L" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 12 }, "type": "J" }, - { "position": { "x": 7, "y": 12 }, "type": "J" }, - { "position": { "x": 7, "y": 13 }, "type": "J" }, - { "position": { "x": 3, "y": 12 }, "type": "L" }, - { "position": { "x": 3, "y": 13 }, "type": "L" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 8, "y": 10 }, "type": "O" }, - { "position": { "x": 7, "y": 11 }, "type": "O" }, - { "position": { "x": 8, "y": 11 }, "type": "O" }, - { "position": { "x": 9, "y": 12 }, "type": "I" }, - { "position": { "x": 9, "y": 13 }, "type": "I" }, - { "position": { "x": 5, "y": 11 }, "type": "Z" }, - { "position": { "x": 5, "y": 12 }, "type": "Z" }, - { "position": { "x": 4, "y": 12 }, "type": "Z" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 12 }, "type": "J" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 0, "y": 13 }, "type": "J" } - ], - "score": 1180, - "simulation_step_index": 1664, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 3, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "L" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 12 }, "type": "J" }, - { "position": { "x": 7, "y": 12 }, "type": "J" }, - { "position": { "x": 7, "y": 13 }, "type": "J" }, - { "position": { "x": 3, "y": 12 }, "type": "L" }, - { "position": { "x": 3, "y": 13 }, "type": "L" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 8, "y": 10 }, "type": "O" }, - { "position": { "x": 7, "y": 11 }, "type": "O" }, - { "position": { "x": 8, "y": 11 }, "type": "O" }, - { "position": { "x": 9, "y": 12 }, "type": "I" }, - { "position": { "x": 9, "y": 13 }, "type": "I" }, - { "position": { "x": 5, "y": 11 }, "type": "Z" }, - { "position": { "x": 5, "y": 12 }, "type": "Z" }, - { "position": { "x": 4, "y": 12 }, "type": "Z" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 12 }, "type": "J" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 0, "y": 13 }, "type": "J" }, - { "position": { "x": 1, "y": 11 }, "type": "L" }, - { "position": { "x": 2, "y": 11 }, "type": "L" }, - { "position": { "x": 2, "y": 12 }, "type": "L" }, - { "position": { "x": 2, "y": 13 }, "type": "L" } - ], - "score": 1220, - "simulation_step_index": 1748, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 3, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 8, "y": 13 }, "type": "L" }, - { "position": { "x": 1, "y": 13 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 12 }, "type": "J" }, - { "position": { "x": 7, "y": 12 }, "type": "J" }, - { "position": { "x": 7, "y": 13 }, "type": "J" }, - { "position": { "x": 3, "y": 12 }, "type": "L" }, - { "position": { "x": 3, "y": 13 }, "type": "L" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 8, "y": 10 }, "type": "O" }, - { "position": { "x": 7, "y": 11 }, "type": "O" }, - { "position": { "x": 8, "y": 11 }, "type": "O" }, - { "position": { "x": 9, "y": 12 }, "type": "I" }, - { "position": { "x": 9, "y": 13 }, "type": "I" }, - { "position": { "x": 5, "y": 11 }, "type": "Z" }, - { "position": { "x": 5, "y": 12 }, "type": "Z" }, - { "position": { "x": 4, "y": 12 }, "type": "Z" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 12 }, "type": "J" }, - { "position": { "x": 0, "y": 12 }, "type": "J" }, - { "position": { "x": 0, "y": 13 }, "type": "J" }, - { "position": { "x": 1, "y": 11 }, "type": "L" }, - { "position": { "x": 2, "y": 11 }, "type": "L" }, - { "position": { "x": 2, "y": 12 }, "type": "L" }, - { "position": { "x": 2, "y": 13 }, "type": "L" }, - { "position": { "x": 0, "y": 9 }, "type": "T" }, - { "position": { "x": 0, "y": 10 }, "type": "T" }, - { "position": { "x": 1, "y": 10 }, "type": "T" }, - { "position": { "x": 0, "y": 11 }, "type": "T" } - ], - "score": 1252, - "simulation_step_index": 1824, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 5, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 7, "y": 12 }, "type": "O" }, - { "position": { "x": 8, "y": 12 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 8, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 13 }, "type": "L" }, - { "position": { "x": 2, "y": 13 }, "type": "L" }, - { "position": { "x": 0, "y": 11 }, "type": "T" }, - { "position": { "x": 0, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 0, "y": 13 }, "type": "T" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 13 }, "type": "I" } - ], - "score": 1388, - "simulation_step_index": 1885, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 5, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 7, "y": 12 }, "type": "O" }, - { "position": { "x": 8, "y": 12 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 8, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 13 }, "type": "L" }, - { "position": { "x": 2, "y": 13 }, "type": "L" }, - { "position": { "x": 0, "y": 11 }, "type": "T" }, - { "position": { "x": 0, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 0, "y": 13 }, "type": "T" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 13 }, "type": "I" }, - { "position": { "x": 3, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 12 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" } - ], - "score": 1432, - "simulation_step_index": 1935, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 5, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 7, "y": 12 }, "type": "O" }, - { "position": { "x": 8, "y": 12 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 8, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 13 }, "type": "L" }, - { "position": { "x": 2, "y": 13 }, "type": "L" }, - { "position": { "x": 0, "y": 11 }, "type": "T" }, - { "position": { "x": 0, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 0, "y": 13 }, "type": "T" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 13 }, "type": "I" }, - { "position": { "x": 3, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 12 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 10 }, "type": "O" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 6, "y": 11 }, "type": "O" }, - { "position": { "x": 7, "y": 11 }, "type": "O" } - ], - "score": 1468, - "simulation_step_index": 2026, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 5, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 7, "y": 12 }, "type": "O" }, - { "position": { "x": 8, "y": 12 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 8, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 13 }, "type": "L" }, - { "position": { "x": 2, "y": 13 }, "type": "L" }, - { "position": { "x": 0, "y": 11 }, "type": "T" }, - { "position": { "x": 0, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 0, "y": 13 }, "type": "T" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 13 }, "type": "I" }, - { "position": { "x": 3, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 12 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 10 }, "type": "O" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 6, "y": 11 }, "type": "O" }, - { "position": { "x": 7, "y": 11 }, "type": "O" }, - { "position": { "x": 4, "y": 11 }, "type": "J" }, - { "position": { "x": 5, "y": 11 }, "type": "J" }, - { "position": { "x": 5, "y": 10 }, "type": "J" }, - { "position": { "x": 5, "y": 9 }, "type": "J" } - ], - "score": 1492, - "simulation_step_index": 2174, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 5, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 7, "y": 12 }, "type": "O" }, - { "position": { "x": 8, "y": 12 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 8, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 13 }, "type": "L" }, - { "position": { "x": 2, "y": 13 }, "type": "L" }, - { "position": { "x": 0, "y": 11 }, "type": "T" }, - { "position": { "x": 0, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 0, "y": 13 }, "type": "T" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 13 }, "type": "I" }, - { "position": { "x": 3, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 12 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 10 }, "type": "O" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 6, "y": 11 }, "type": "O" }, - { "position": { "x": 7, "y": 11 }, "type": "O" }, - { "position": { "x": 4, "y": 11 }, "type": "J" }, - { "position": { "x": 5, "y": 11 }, "type": "J" }, - { "position": { "x": 5, "y": 10 }, "type": "J" }, - { "position": { "x": 5, "y": 9 }, "type": "J" }, - { "position": { "x": 1, "y": 11 }, "type": "Z" }, - { "position": { "x": 2, "y": 11 }, "type": "Z" }, - { "position": { "x": 2, "y": 12 }, "type": "Z" }, - { "position": { "x": 3, "y": 12 }, "type": "Z" } - ], - "score": 1524, - "simulation_step_index": 2271, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 5, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 7, "y": 12 }, "type": "O" }, - { "position": { "x": 8, "y": 12 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 8, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "Z" }, - { "position": { "x": 1, "y": 13 }, "type": "L" }, - { "position": { "x": 2, "y": 13 }, "type": "L" }, - { "position": { "x": 0, "y": 11 }, "type": "T" }, - { "position": { "x": 0, "y": 12 }, "type": "T" }, - { "position": { "x": 1, "y": 12 }, "type": "T" }, - { "position": { "x": 0, "y": 13 }, "type": "T" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 13 }, "type": "I" }, - { "position": { "x": 3, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 4, "y": 12 }, "type": "S" }, - { "position": { "x": 5, "y": 12 }, "type": "S" }, - { "position": { "x": 6, "y": 10 }, "type": "O" }, - { "position": { "x": 7, "y": 10 }, "type": "O" }, - { "position": { "x": 6, "y": 11 }, "type": "O" }, - { "position": { "x": 7, "y": 11 }, "type": "O" }, - { "position": { "x": 4, "y": 11 }, "type": "J" }, - { "position": { "x": 5, "y": 11 }, "type": "J" }, - { "position": { "x": 5, "y": 10 }, "type": "J" }, - { "position": { "x": 5, "y": 9 }, "type": "J" }, - { "position": { "x": 1, "y": 11 }, "type": "Z" }, - { "position": { "x": 2, "y": 11 }, "type": "Z" }, - { "position": { "x": 2, "y": 12 }, "type": "Z" }, - { "position": { "x": 3, "y": 12 }, "type": "Z" }, - { "position": { "x": 2, "y": 9 }, "type": "S" }, - { "position": { "x": 2, "y": 10 }, "type": "S" }, - { "position": { "x": 3, "y": 10 }, "type": "S" }, - { "position": { "x": 3, "y": 11 }, "type": "S" } - ], - "score": 1556, - "simulation_step_index": 2353, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 8, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 13 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "J" }, - { "position": { "x": 5, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "S" }, - { "position": { "x": 2, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 13 }, "type": "S" } - ], - "score": 1896, - "simulation_step_index": 2431, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 8, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 13 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "J" }, - { "position": { "x": 5, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "S" }, - { "position": { "x": 2, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 13 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" } - ], - "score": 1972, - "simulation_step_index": 2732, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 8, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 13 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "J" }, - { "position": { "x": 5, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "S" }, - { "position": { "x": 2, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 13 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 1, "y": 14 }, "type": "O" }, - { "position": { "x": 2, "y": 14 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" } - ], - "score": 2040, - "simulation_step_index": 2949, - "tetrion_index": 0 - }, - { - "level": 0, - "lines_cleared": 8, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 3, "y": 15 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 6, "y": 15 }, "type": "I" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 7, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 7, "y": 14 }, "type": "T" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 14 }, "type": "Z" }, - { "position": { "x": 6, "y": 13 }, "type": "O" }, - { "position": { "x": 7, "y": 13 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "J" }, - { "position": { "x": 5, "y": 12 }, "type": "J" }, - { "position": { "x": 2, "y": 12 }, "type": "S" }, - { "position": { "x": 2, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 13 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 1, "y": 14 }, "type": "O" }, - { "position": { "x": 2, "y": 14 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 4, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 12 }, "type": "T" }, - { "position": { "x": 3, "y": 12 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "T" } - ], - "score": 2084, - "simulation_step_index": 3013, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 10, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 6, "y": 15 }, "type": "O" }, - { "position": { "x": 7, "y": 15 }, "type": "O" }, - { "position": { "x": 5, "y": 15 }, "type": "J" }, - { "position": { "x": 5, "y": 14 }, "type": "J" }, - { "position": { "x": 2, "y": 14 }, "type": "S" }, - { "position": { "x": 2, "y": 15 }, "type": "S" }, - { "position": { "x": 3, "y": 15 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 4, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 14 }, "type": "T" }, - { "position": { "x": 3, "y": 14 }, "type": "T" }, - { "position": { "x": 4, "y": 15 }, "type": "T" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 0, "y": 17 }, "type": "I" } - ], - "score": 2340, - "simulation_step_index": 3160, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 10, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 6, "y": 15 }, "type": "O" }, - { "position": { "x": 7, "y": 15 }, "type": "O" }, - { "position": { "x": 5, "y": 15 }, "type": "J" }, - { "position": { "x": 5, "y": 14 }, "type": "J" }, - { "position": { "x": 2, "y": 14 }, "type": "S" }, - { "position": { "x": 2, "y": 15 }, "type": "S" }, - { "position": { "x": 3, "y": 15 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 4, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 14 }, "type": "T" }, - { "position": { "x": 3, "y": 14 }, "type": "T" }, - { "position": { "x": 4, "y": 15 }, "type": "T" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 7, "y": 14 }, "type": "Z" }, - { "position": { "x": 8, "y": 14 }, "type": "Z" }, - { "position": { "x": 8, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" } - ], - "score": 2392, - "simulation_step_index": 3232, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 10, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 6, "y": 15 }, "type": "O" }, - { "position": { "x": 7, "y": 15 }, "type": "O" }, - { "position": { "x": 5, "y": 15 }, "type": "J" }, - { "position": { "x": 5, "y": 14 }, "type": "J" }, - { "position": { "x": 2, "y": 14 }, "type": "S" }, - { "position": { "x": 2, "y": 15 }, "type": "S" }, - { "position": { "x": 3, "y": 15 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 4, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 14 }, "type": "T" }, - { "position": { "x": 3, "y": 14 }, "type": "T" }, - { "position": { "x": 4, "y": 15 }, "type": "T" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 7, "y": 14 }, "type": "Z" }, - { "position": { "x": 8, "y": 14 }, "type": "Z" }, - { "position": { "x": 8, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 8, "y": 12 }, "type": "S" }, - { "position": { "x": 8, "y": 13 }, "type": "S" }, - { "position": { "x": 9, "y": 13 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" } - ], - "score": 2432, - "simulation_step_index": 3385, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 10, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 6, "y": 15 }, "type": "O" }, - { "position": { "x": 7, "y": 15 }, "type": "O" }, - { "position": { "x": 5, "y": 15 }, "type": "J" }, - { "position": { "x": 5, "y": 14 }, "type": "J" }, - { "position": { "x": 2, "y": 14 }, "type": "S" }, - { "position": { "x": 2, "y": 15 }, "type": "S" }, - { "position": { "x": 3, "y": 15 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 4, "y": 13 }, "type": "T" }, - { "position": { "x": 4, "y": 14 }, "type": "T" }, - { "position": { "x": 3, "y": 14 }, "type": "T" }, - { "position": { "x": 4, "y": 15 }, "type": "T" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 7, "y": 14 }, "type": "Z" }, - { "position": { "x": 8, "y": 14 }, "type": "Z" }, - { "position": { "x": 8, "y": 15 }, "type": "Z" }, - { "position": { "x": 9, "y": 15 }, "type": "Z" }, - { "position": { "x": 8, "y": 12 }, "type": "S" }, - { "position": { "x": 8, "y": 13 }, "type": "S" }, - { "position": { "x": 9, "y": 13 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 2, "y": 13 }, "type": "J" }, - { "position": { "x": 1, "y": 13 }, "type": "J" }, - { "position": { "x": 1, "y": 14 }, "type": "J" }, - { "position": { "x": 1, "y": 15 }, "type": "J" } - ], - "score": 2476, - "simulation_step_index": 3474, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 11, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 5, "y": 15 }, "type": "J" }, - { "position": { "x": 2, "y": 15 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 4, "y": 14 }, "type": "T" }, - { "position": { "x": 4, "y": 15 }, "type": "T" }, - { "position": { "x": 3, "y": 15 }, "type": "T" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 7, "y": 15 }, "type": "Z" }, - { "position": { "x": 8, "y": 15 }, "type": "Z" }, - { "position": { "x": 8, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 15 }, "type": "S" }, - { "position": { "x": 2, "y": 14 }, "type": "J" }, - { "position": { "x": 1, "y": 14 }, "type": "J" }, - { "position": { "x": 1, "y": 15 }, "type": "J" }, - { "position": { "x": 0, "y": 13 }, "type": "I" }, - { "position": { "x": 0, "y": 14 }, "type": "I" }, - { "position": { "x": 0, "y": 15 }, "type": "I" } - ], - "score": 2604, - "simulation_step_index": 3636, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 11, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 5, "y": 15 }, "type": "J" }, - { "position": { "x": 2, "y": 15 }, "type": "S" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 4, "y": 14 }, "type": "T" }, - { "position": { "x": 4, "y": 15 }, "type": "T" }, - { "position": { "x": 3, "y": 15 }, "type": "T" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 7, "y": 15 }, "type": "Z" }, - { "position": { "x": 8, "y": 15 }, "type": "Z" }, - { "position": { "x": 8, "y": 13 }, "type": "S" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 14 }, "type": "S" }, - { "position": { "x": 9, "y": 15 }, "type": "S" }, - { "position": { "x": 2, "y": 14 }, "type": "J" }, - { "position": { "x": 1, "y": 14 }, "type": "J" }, - { "position": { "x": 1, "y": 15 }, "type": "J" }, - { "position": { "x": 0, "y": 13 }, "type": "I" }, - { "position": { "x": 0, "y": 14 }, "type": "I" }, - { "position": { "x": 0, "y": 15 }, "type": "I" }, - { "position": { "x": 1, "y": 12 }, "type": "O" }, - { "position": { "x": 2, "y": 12 }, "type": "O" }, - { "position": { "x": 1, "y": 13 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "O" } - ], - "score": 2648, - "simulation_step_index": 3698, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 12, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 4, "y": 15 }, "type": "T" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 8, "y": 14 }, "type": "S" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 9, "y": 15 }, "type": "S" }, - { "position": { "x": 2, "y": 15 }, "type": "J" }, - { "position": { "x": 1, "y": 15 }, "type": "J" }, - { "position": { "x": 0, "y": 14 }, "type": "I" }, - { "position": { "x": 0, "y": 15 }, "type": "I" }, - { "position": { "x": 1, "y": 13 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "O" }, - { "position": { "x": 1, "y": 14 }, "type": "O" }, - { "position": { "x": 2, "y": 14 }, "type": "O" }, - { "position": { "x": 5, "y": 15 }, "type": "T" }, - { "position": { "x": 6, "y": 15 }, "type": "T" }, - { "position": { "x": 7, "y": 15 }, "type": "T" } - ], - "score": 2776, - "simulation_step_index": 3784, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 13, - "mino_stack": [ - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 17 }, "type": "L" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 16 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 8, "y": 15 }, "type": "S" }, - { "position": { "x": 0, "y": 15 }, "type": "I" }, - { "position": { "x": 1, "y": 14 }, "type": "O" }, - { "position": { "x": 2, "y": 14 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 3, "y": 15 }, "type": "J" }, - { "position": { "x": 3, "y": 16 }, "type": "J" } - ], - "score": 2900, - "simulation_step_index": 3918, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 14, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 17 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 8, "y": 16 }, "type": "S" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 7, "y": 16 }, "type": "L" }, - { "position": { "x": 7, "y": 17 }, "type": "L" } - ], - "score": 3032, - "simulation_step_index": 4138, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 14, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 17 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 8, "y": 16 }, "type": "S" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 7, "y": 16 }, "type": "L" }, - { "position": { "x": 7, "y": 17 }, "type": "L" }, - { "position": { "x": 1, "y": 13 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "O" }, - { "position": { "x": 1, "y": 14 }, "type": "O" }, - { "position": { "x": 2, "y": 14 }, "type": "O" } - ], - "score": 3080, - "simulation_step_index": 4216, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 14, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 17 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 8, "y": 16 }, "type": "S" }, - { "position": { "x": 0, "y": 16 }, "type": "I" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 7, "y": 16 }, "type": "L" }, - { "position": { "x": 7, "y": 17 }, "type": "L" }, - { "position": { "x": 1, "y": 13 }, "type": "O" }, - { "position": { "x": 2, "y": 13 }, "type": "O" }, - { "position": { "x": 1, "y": 14 }, "type": "O" }, - { "position": { "x": 2, "y": 14 }, "type": "O" }, - { "position": { "x": 9, "y": 14 }, "type": "T" }, - { "position": { "x": 9, "y": 15 }, "type": "T" }, - { "position": { "x": 8, "y": 15 }, "type": "T" }, - { "position": { "x": 9, "y": 16 }, "type": "T" } - ], - "score": 3132, - "simulation_step_index": 4291, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 15, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 9, "y": 17 }, "type": "Z" }, - { "position": { "x": 8, "y": 17 }, "type": "Z" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 0, "y": 17 }, "type": "I" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 3, "y": 17 }, "type": "J" }, - { "position": { "x": 7, "y": 17 }, "type": "L" }, - { "position": { "x": 1, "y": 14 }, "type": "O" }, - { "position": { "x": 2, "y": 14 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 9, "y": 15 }, "type": "T" }, - { "position": { "x": 9, "y": 16 }, "type": "T" }, - { "position": { "x": 8, "y": 16 }, "type": "T" }, - { "position": { "x": 5, "y": 15 }, "type": "I" }, - { "position": { "x": 5, "y": 16 }, "type": "I" }, - { "position": { "x": 5, "y": 17 }, "type": "I" } - ], - "score": 3264, - "simulation_step_index": 4372, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 16, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "T" }, - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 8, "y": 17 }, "type": "T" }, - { "position": { "x": 5, "y": 16 }, "type": "I" }, - { "position": { "x": 5, "y": 17 }, "type": "I" }, - { "position": { "x": 3, "y": 16 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "S" }, - { "position": { "x": 4, "y": 17 }, "type": "S" } - ], - "score": 3400, - "simulation_step_index": 4433, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 16, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "T" }, - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 8, "y": 17 }, "type": "T" }, - { "position": { "x": 5, "y": 16 }, "type": "I" }, - { "position": { "x": 5, "y": 17 }, "type": "I" }, - { "position": { "x": 3, "y": 16 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "S" }, - { "position": { "x": 4, "y": 17 }, "type": "S" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 16 }, "type": "Z" } - ], - "score": 3448, - "simulation_step_index": 4665, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 16, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "T" }, - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 8, "y": 17 }, "type": "T" }, - { "position": { "x": 5, "y": 16 }, "type": "I" }, - { "position": { "x": 5, "y": 17 }, "type": "I" }, - { "position": { "x": 3, "y": 16 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "S" }, - { "position": { "x": 4, "y": 17 }, "type": "S" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 16 }, "type": "Z" }, - { "position": { "x": 6, "y": 16 }, "type": "O" }, - { "position": { "x": 7, "y": 16 }, "type": "O" }, - { "position": { "x": 6, "y": 17 }, "type": "O" }, - { "position": { "x": 7, "y": 17 }, "type": "O" } - ], - "score": 3508, - "simulation_step_index": 4740, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 16, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "T" }, - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 8, "y": 17 }, "type": "T" }, - { "position": { "x": 5, "y": 16 }, "type": "I" }, - { "position": { "x": 5, "y": 17 }, "type": "I" }, - { "position": { "x": 3, "y": 16 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "S" }, - { "position": { "x": 4, "y": 17 }, "type": "S" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 16 }, "type": "Z" }, - { "position": { "x": 6, "y": 16 }, "type": "O" }, - { "position": { "x": 7, "y": 16 }, "type": "O" }, - { "position": { "x": 6, "y": 17 }, "type": "O" }, - { "position": { "x": 7, "y": 17 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "L" }, - { "position": { "x": 6, "y": 13 }, "type": "L" }, - { "position": { "x": 6, "y": 14 }, "type": "L" }, - { "position": { "x": 6, "y": 15 }, "type": "L" } - ], - "score": 3552, - "simulation_step_index": 5012, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 16, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "T" }, - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 8, "y": 17 }, "type": "T" }, - { "position": { "x": 5, "y": 16 }, "type": "I" }, - { "position": { "x": 5, "y": 17 }, "type": "I" }, - { "position": { "x": 3, "y": 16 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "S" }, - { "position": { "x": 4, "y": 17 }, "type": "S" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 16 }, "type": "Z" }, - { "position": { "x": 6, "y": 16 }, "type": "O" }, - { "position": { "x": 7, "y": 16 }, "type": "O" }, - { "position": { "x": 6, "y": 17 }, "type": "O" }, - { "position": { "x": 7, "y": 17 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "L" }, - { "position": { "x": 6, "y": 13 }, "type": "L" }, - { "position": { "x": 6, "y": 14 }, "type": "L" }, - { "position": { "x": 6, "y": 15 }, "type": "L" }, - { "position": { "x": 7, "y": 15 }, "type": "T" }, - { "position": { "x": 8, "y": 15 }, "type": "T" }, - { "position": { "x": 9, "y": 15 }, "type": "T" }, - { "position": { "x": 8, "y": 16 }, "type": "T" } - ], - "score": 3604, - "simulation_step_index": 5073, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 16, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 1, "y": 15 }, "type": "O" }, - { "position": { "x": 2, "y": 15 }, "type": "O" }, - { "position": { "x": 1, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 9, "y": 16 }, "type": "T" }, - { "position": { "x": 9, "y": 17 }, "type": "T" }, - { "position": { "x": 8, "y": 17 }, "type": "T" }, - { "position": { "x": 5, "y": 16 }, "type": "I" }, - { "position": { "x": 5, "y": 17 }, "type": "I" }, - { "position": { "x": 3, "y": 16 }, "type": "S" }, - { "position": { "x": 3, "y": 17 }, "type": "S" }, - { "position": { "x": 4, "y": 17 }, "type": "S" }, - { "position": { "x": 5, "y": 14 }, "type": "Z" }, - { "position": { "x": 5, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 15 }, "type": "Z" }, - { "position": { "x": 4, "y": 16 }, "type": "Z" }, - { "position": { "x": 6, "y": 16 }, "type": "O" }, - { "position": { "x": 7, "y": 16 }, "type": "O" }, - { "position": { "x": 6, "y": 17 }, "type": "O" }, - { "position": { "x": 7, "y": 17 }, "type": "O" }, - { "position": { "x": 5, "y": 13 }, "type": "L" }, - { "position": { "x": 6, "y": 13 }, "type": "L" }, - { "position": { "x": 6, "y": 14 }, "type": "L" }, - { "position": { "x": 6, "y": 15 }, "type": "L" }, - { "position": { "x": 7, "y": 15 }, "type": "T" }, - { "position": { "x": 8, "y": 15 }, "type": "T" }, - { "position": { "x": 9, "y": 15 }, "type": "T" }, - { "position": { "x": 8, "y": 16 }, "type": "T" }, - { "position": { "x": 4, "y": 13 }, "type": "Z" }, - { "position": { "x": 4, "y": 14 }, "type": "Z" }, - { "position": { "x": 3, "y": 14 }, "type": "Z" }, - { "position": { "x": 3, "y": 15 }, "type": "Z" } - ], - "score": 3652, - "simulation_step_index": 5159, - "tetrion_index": 0 - }, - { - "level": 1, - "lines_cleared": 19, - "mino_stack": [ - { "position": { "x": 9, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 18 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "S" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 4, "y": 18 }, "type": "J" }, - { "position": { "x": 5, "y": 18 }, "type": "J" }, - { "position": { "x": 0, "y": 18 }, "type": "O" }, - { "position": { "x": 1, "y": 18 }, "type": "O" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 5, "y": 17 }, "type": "Z" }, - { "position": { "x": 5, "y": 16 }, "type": "L" }, - { "position": { "x": 6, "y": 16 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 4, "y": 16 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "Z" }, - { "position": { "x": 3, "y": 17 }, "type": "Z" }, - { "position": { "x": 0, "y": 17 }, "type": "I" } - ], - "score": 4308, - "simulation_step_index": 5199, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 20, - "mino_stack": [ - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 5, "y": 18 }, "type": "Z" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 18 }, "type": "L" }, - { "position": { "x": 4, "y": 17 }, "type": "Z" }, - { "position": { "x": 4, "y": 18 }, "type": "Z" }, - { "position": { "x": 3, "y": 18 }, "type": "Z" }, - { "position": { "x": 0, "y": 18 }, "type": "I" }, - { "position": { "x": 1, "y": 18 }, "type": "L" }, - { "position": { "x": 2, "y": 18 }, "type": "L" }, - { "position": { "x": 2, "y": 19 }, "type": "L" } - ], - "score": 4492, - "simulation_step_index": 5353, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 20, - "mino_stack": [ - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 5, "y": 18 }, "type": "Z" }, - { "position": { "x": 5, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 17 }, "type": "L" }, - { "position": { "x": 6, "y": 18 }, "type": "L" }, - { "position": { "x": 4, "y": 17 }, "type": "Z" }, - { "position": { "x": 4, "y": 18 }, "type": "Z" }, - { "position": { "x": 3, "y": 18 }, "type": "Z" }, - { "position": { "x": 0, "y": 18 }, "type": "I" }, - { "position": { "x": 1, "y": 18 }, "type": "L" }, - { "position": { "x": 2, "y": 18 }, "type": "L" }, - { "position": { "x": 2, "y": 19 }, "type": "L" }, - { "position": { "x": 7, "y": 19 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 9, "y": 18 }, "type": "S" } - ], - "score": 4560, - "simulation_step_index": 5506, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 21, - "mino_stack": [ - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 5, "y": 18 }, "type": "L" }, - { "position": { "x": 6, "y": 18 }, "type": "L" }, - { "position": { "x": 4, "y": 18 }, "type": "Z" }, - { "position": { "x": 2, "y": 19 }, "type": "L" }, - { "position": { "x": 7, "y": 19 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 7, "y": 17 }, "type": "T" }, - { "position": { "x": 7, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" } - ], - "score": 4736, - "simulation_step_index": 5592, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 21, - "mino_stack": [ - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 5, "y": 18 }, "type": "L" }, - { "position": { "x": 6, "y": 18 }, "type": "L" }, - { "position": { "x": 4, "y": 18 }, "type": "Z" }, - { "position": { "x": 2, "y": 19 }, "type": "L" }, - { "position": { "x": 7, "y": 19 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 7, "y": 17 }, "type": "T" }, - { "position": { "x": 7, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 1, "y": 18 }, "type": "J" }, - { "position": { "x": 2, "y": 18 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 3, "y": 19 }, "type": "J" } - ], - "score": 4796, - "simulation_step_index": 5889, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 21, - "mino_stack": [ - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 5, "y": 18 }, "type": "L" }, - { "position": { "x": 6, "y": 18 }, "type": "L" }, - { "position": { "x": 4, "y": 18 }, "type": "Z" }, - { "position": { "x": 2, "y": 19 }, "type": "L" }, - { "position": { "x": 7, "y": 19 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 7, "y": 17 }, "type": "T" }, - { "position": { "x": 7, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 1, "y": 18 }, "type": "J" }, - { "position": { "x": 2, "y": 18 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 3, "y": 19 }, "type": "J" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 3, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 3, "y": 17 }, "type": "O" } - ], - "score": 4856, - "simulation_step_index": 5944, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 21, - "mino_stack": [ - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 5, "y": 18 }, "type": "L" }, - { "position": { "x": 6, "y": 18 }, "type": "L" }, - { "position": { "x": 4, "y": 18 }, "type": "Z" }, - { "position": { "x": 2, "y": 19 }, "type": "L" }, - { "position": { "x": 7, "y": 19 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 7, "y": 17 }, "type": "T" }, - { "position": { "x": 7, "y": 18 }, "type": "T" }, - { "position": { "x": 8, "y": 18 }, "type": "T" }, - { "position": { "x": 1, "y": 18 }, "type": "J" }, - { "position": { "x": 2, "y": 18 }, "type": "J" }, - { "position": { "x": 3, "y": 18 }, "type": "J" }, - { "position": { "x": 3, "y": 19 }, "type": "J" }, - { "position": { "x": 2, "y": 16 }, "type": "O" }, - { "position": { "x": 3, "y": 16 }, "type": "O" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 3, "y": 17 }, "type": "O" }, - { "position": { "x": 8, "y": 16 }, "type": "S" }, - { "position": { "x": 8, "y": 17 }, "type": "S" }, - { "position": { "x": 9, "y": 17 }, "type": "S" }, - { "position": { "x": 9, "y": 18 }, "type": "S" } - ], - "score": 4912, - "simulation_step_index": 6045, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 22, - "mino_stack": [ - { "position": { "x": 9, "y": 19 }, "type": "T" }, - { "position": { "x": 5, "y": 19 }, "type": "S" }, - { "position": { "x": 6, "y": 19 }, "type": "S" }, - { "position": { "x": 0, "y": 19 }, "type": "O" }, - { "position": { "x": 1, "y": 19 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "L" }, - { "position": { "x": 7, "y": 19 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 7, "y": 18 }, "type": "T" }, - { "position": { "x": 3, "y": 19 }, "type": "J" }, - { "position": { "x": 2, "y": 17 }, "type": "O" }, - { "position": { "x": 3, "y": 17 }, "type": "O" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 8, "y": 17 }, "type": "S" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 9, "y": 18 }, "type": "S" }, - { "position": { "x": 1, "y": 17 }, "type": "Z" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 0, "y": 18 }, "type": "Z" } - ], - "score": 5092, - "simulation_step_index": 6092, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" } - ], - "score": 5272, - "simulation_step_index": 6162, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" } - ], - "score": 5328, - "simulation_step_index": 6212, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" } - ], - "score": 5380, - "simulation_step_index": 6223, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" } - ], - "score": 5424, - "simulation_step_index": 6233, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 3, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 10 }, "type": "T" }, - { "position": { "x": 5, "y": 11 }, "type": "T" } - ], - "score": 5464, - "simulation_step_index": 6242, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 3, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 10 }, "type": "T" }, - { "position": { "x": 5, "y": 11 }, "type": "T" }, - { "position": { "x": 3, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 9 }, "type": "Z" }, - { "position": { "x": 5, "y": 9 }, "type": "Z" } - ], - "score": 5496, - "simulation_step_index": 6252, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 3, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 10 }, "type": "T" }, - { "position": { "x": 5, "y": 11 }, "type": "T" }, - { "position": { "x": 3, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 9 }, "type": "Z" }, - { "position": { "x": 5, "y": 9 }, "type": "Z" }, - { "position": { "x": 3, "y": 7 }, "type": "L" }, - { "position": { "x": 4, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 6 }, "type": "L" } - ], - "score": 5520, - "simulation_step_index": 6261, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 3, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 10 }, "type": "T" }, - { "position": { "x": 5, "y": 11 }, "type": "T" }, - { "position": { "x": 3, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 9 }, "type": "Z" }, - { "position": { "x": 5, "y": 9 }, "type": "Z" }, - { "position": { "x": 3, "y": 7 }, "type": "L" }, - { "position": { "x": 4, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 6 }, "type": "L" }, - { "position": { "x": 3, "y": 4 }, "type": "J" }, - { "position": { "x": 3, "y": 5 }, "type": "J" }, - { "position": { "x": 4, "y": 5 }, "type": "J" }, - { "position": { "x": 5, "y": 5 }, "type": "J" } - ], - "score": 5536, - "simulation_step_index": 6268, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 3, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 10 }, "type": "T" }, - { "position": { "x": 5, "y": 11 }, "type": "T" }, - { "position": { "x": 3, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 9 }, "type": "Z" }, - { "position": { "x": 5, "y": 9 }, "type": "Z" }, - { "position": { "x": 3, "y": 7 }, "type": "L" }, - { "position": { "x": 4, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 6 }, "type": "L" }, - { "position": { "x": 3, "y": 4 }, "type": "J" }, - { "position": { "x": 3, "y": 5 }, "type": "J" }, - { "position": { "x": 4, "y": 5 }, "type": "J" }, - { "position": { "x": 5, "y": 5 }, "type": "J" }, - { "position": { "x": 4, "y": 3 }, "type": "O" }, - { "position": { "x": 5, "y": 3 }, "type": "O" }, - { "position": { "x": 4, "y": 4 }, "type": "O" }, - { "position": { "x": 5, "y": 4 }, "type": "O" } - ], - "score": 5548, - "simulation_step_index": 6277, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 3, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 10 }, "type": "T" }, - { "position": { "x": 5, "y": 11 }, "type": "T" }, - { "position": { "x": 3, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 9 }, "type": "Z" }, - { "position": { "x": 5, "y": 9 }, "type": "Z" }, - { "position": { "x": 3, "y": 7 }, "type": "L" }, - { "position": { "x": 4, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 6 }, "type": "L" }, - { "position": { "x": 3, "y": 4 }, "type": "J" }, - { "position": { "x": 3, "y": 5 }, "type": "J" }, - { "position": { "x": 4, "y": 5 }, "type": "J" }, - { "position": { "x": 5, "y": 5 }, "type": "J" }, - { "position": { "x": 4, "y": 3 }, "type": "O" }, - { "position": { "x": 5, "y": 3 }, "type": "O" }, - { "position": { "x": 4, "y": 4 }, "type": "O" }, - { "position": { "x": 5, "y": 4 }, "type": "O" }, - { "position": { "x": 3, "y": 2 }, "type": "S" }, - { "position": { "x": 4, "y": 2 }, "type": "S" }, - { "position": { "x": 4, "y": 1 }, "type": "S" }, - { "position": { "x": 5, "y": 1 }, "type": "S" }, - { "position": { "x": 3, "y": 0 }, "type": "I" }, - { "position": { "x": 4, "y": 0 }, "type": "I" }, - { "position": { "x": 5, "y": 0 }, "type": "I" }, - { "position": { "x": 6, "y": 0 }, "type": "I" } - ], - "score": 5552, - "simulation_step_index": 6287, - "tetrion_index": 0 - }, - { - "level": 2, - "lines_cleared": 23, - "mino_stack": [ - { "position": { "x": 7, "y": 19 }, "type": "T" }, - { "position": { "x": 2, "y": 18 }, "type": "O" }, - { "position": { "x": 3, "y": 18 }, "type": "O" }, - { "position": { "x": 2, "y": 19 }, "type": "O" }, - { "position": { "x": 3, "y": 19 }, "type": "O" }, - { "position": { "x": 8, "y": 18 }, "type": "S" }, - { "position": { "x": 8, "y": 19 }, "type": "S" }, - { "position": { "x": 9, "y": 19 }, "type": "S" }, - { "position": { "x": 1, "y": 18 }, "type": "Z" }, - { "position": { "x": 1, "y": 19 }, "type": "Z" }, - { "position": { "x": 0, "y": 19 }, "type": "Z" }, - { "position": { "x": 4, "y": 17 }, "type": "I" }, - { "position": { "x": 4, "y": 18 }, "type": "I" }, - { "position": { "x": 4, "y": 19 }, "type": "I" }, - { "position": { "x": 4, "y": 15 }, "type": "J" }, - { "position": { "x": 4, "y": 16 }, "type": "J" }, - { "position": { "x": 5, "y": 16 }, "type": "J" }, - { "position": { "x": 6, "y": 16 }, "type": "J" }, - { "position": { "x": 3, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 14 }, "type": "S" }, - { "position": { "x": 4, "y": 13 }, "type": "S" }, - { "position": { "x": 5, "y": 13 }, "type": "S" }, - { "position": { "x": 3, "y": 12 }, "type": "I" }, - { "position": { "x": 4, "y": 12 }, "type": "I" }, - { "position": { "x": 5, "y": 12 }, "type": "I" }, - { "position": { "x": 6, "y": 12 }, "type": "I" }, - { "position": { "x": 3, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 11 }, "type": "T" }, - { "position": { "x": 4, "y": 10 }, "type": "T" }, - { "position": { "x": 5, "y": 11 }, "type": "T" }, - { "position": { "x": 3, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 8 }, "type": "Z" }, - { "position": { "x": 4, "y": 9 }, "type": "Z" }, - { "position": { "x": 5, "y": 9 }, "type": "Z" }, - { "position": { "x": 3, "y": 7 }, "type": "L" }, - { "position": { "x": 4, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 7 }, "type": "L" }, - { "position": { "x": 5, "y": 6 }, "type": "L" }, - { "position": { "x": 3, "y": 4 }, "type": "J" }, - { "position": { "x": 3, "y": 5 }, "type": "J" }, - { "position": { "x": 4, "y": 5 }, "type": "J" }, - { "position": { "x": 5, "y": 5 }, "type": "J" }, - { "position": { "x": 4, "y": 3 }, "type": "O" }, - { "position": { "x": 5, "y": 3 }, "type": "O" }, - { "position": { "x": 4, "y": 4 }, "type": "O" }, - { "position": { "x": 5, "y": 4 }, "type": "O" }, - { "position": { "x": 3, "y": 2 }, "type": "S" }, - { "position": { "x": 4, "y": 2 }, "type": "S" }, - { "position": { "x": 4, "y": 1 }, "type": "S" }, - { "position": { "x": 5, "y": 1 }, "type": "S" }, - { "position": { "x": 3, "y": 0 }, "type": "I" }, - { "position": { "x": 4, "y": 0 }, "type": "I" }, - { "position": { "x": 5, "y": 0 }, "type": "I" }, - { "position": { "x": 6, "y": 0 }, "type": "I" } - ], - "score": 5552, - "simulation_step_index": 6287, - "tetrion_index": 0 - } - ], - "tetrion_headers": [{ "seed": 1710635321166006, "starting_level": 0 }], - "version": 1 -} diff --git a/wrapper/javascript/tests/files/incorrect.rec b/wrapper/javascript/tests/files/incorrect.rec deleted file mode 100644 index 9dcd1720..00000000 Binary files a/wrapper/javascript/tests/files/incorrect.rec and /dev/null differ diff --git a/wrapper/javascript/tests/raw.test.ts b/wrapper/javascript/tests/raw.test.ts deleted file mode 100644 index 06af3a94..00000000 --- a/wrapper/javascript/tests/raw.test.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { expect } from "@jest/globals" -import path from "path" -import fs from "fs" - -function fail(reason = "fail was called in a test."): never { - throw new Error(reason) -} - -global.fail = fail - -function getFilePath(name: string): string { - return path.join(__dirname, `files`, name) -} - -const rootDir = path.join(__dirname, "..") -const oopetris = require("node-gyp-build")(rootDir) - -describe("isRecordingFile", () => { - it("should throw an error, when no first argument was given", async () => { - try { - oopetris.isRecordingFile() - - fail("it should not reach here") - } catch (e) { - expect((e as any).toString()).toEqual( - "TypeError: Wrong number of arguments" - ) - } - }) - - it("should throw an error, when the first argument is not a string", async () => { - try { - oopetris.isRecordingFile(1) - - fail("it should not reach here") - } catch (e) { - expect((e as any).toString()).toEqual( - "TypeError: First argument must be string" - ) - } - }) - - it("should return false, when the file doesn't exist", async () => { - const file = getFilePath("NON-EXISTENT.rec") - expect(fs.existsSync(file)).toBe(false) - - const result = oopetris.isRecordingFile(file) - expect(result).toBe(false) - }) -}) - -describe("getInformation", () => { - it("should throw an error, when no first argument was given", async () => { - try { - oopetris.getInformation() - - fail("it should not reach here") - } catch (e) { - expect((e as any).toString()).toEqual( - "TypeError: Wrong number of arguments" - ) - } - }) - - it("should throw an error, when the first argument is not a string", async () => { - try { - oopetris.getInformation(1) - - fail("it should not reach here") - } catch (e) { - expect((e as any).toString()).toEqual( - "TypeError: First argument must be string" - ) - } - }) - - it("should throw an error, when the file doesn't exist", async () => { - const file = getFilePath("NON-EXISTENT.rec") - expect(fs.existsSync(file)).toBe(false) - - try { - oopetris.getInformation(file) - - fail("it should not reach here") - } catch (e) { - expect((e as any).toString()).toEqual( - `Error: File '${file}' doesn't exist!` - ) - } - }) -}) - -describe("exported properties", () => { - it("should only have known properties", async () => { - const expectedKeys = [ - "isRecordingFile", - "getInformation", - "version", - "properties", - ] - - const keys = Object.keys(oopetris) - expect(keys).toStrictEqual(expectedKeys) - }) - - it("should have the expected properties", async () => { - const expectedProperties: Record = { - isRecordingFile: () => {}, - getInformation: () => {}, - version: "0.5.6", - properties: { gridProperties: { height: 20, width: 10 } }, - } - - for (const key in expectedProperties) { - const value = expectedProperties[key] - const rawValue = oopetris[key] - - if (typeof value === "string") { - expect(value).toBe(rawValue) - } else if (typeof value === "function") { - expect(rawValue).toStrictEqual(expect.any(Function)) - } else { - expect(value).toMatchObject(rawValue) - } - } - }) -}) diff --git a/wrapper/javascript/tests/test.spec.ts b/wrapper/javascript/tests/test.spec.ts deleted file mode 100644 index 7c088283..00000000 --- a/wrapper/javascript/tests/test.spec.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { RecordingsUtility } from "../src/ts/index" -import { expect } from "@jest/globals" -import path from "path" -import fs from "fs" - -function fail(reason = "fail was called in a test."): never { - throw new Error(reason) -} - -global.fail = fail - -function getFilePath(name: string): string { - return path.join(__dirname, `files`, name) -} - -describe("isRecordingFile: works as expected", () => { - it("should return false for non existent file", async () => { - const file = getFilePath("NON-EXISTENT.rec") - - expect(fs.existsSync(file)).toBe(false) - - const result = RecordingsUtility.isRecordingFile(file) - expect(result).toBe(false) - }) - - it("should return false for incorrect file", async () => { - const file = getFilePath("incorrect.rec") - - expect(fs.existsSync(file)).toBe(true) - - const result = RecordingsUtility.isRecordingFile(file) - expect(result).toBe(false) - }) - - it("should return true for correct file", async () => { - const file = getFilePath("correct.rec") - - expect(fs.existsSync(file)).toBe(true) - - const result = RecordingsUtility.isRecordingFile(file) - expect(result).toBe(true) - }) -}) - -describe("getInformation: works as expected", () => { - it("should return null for non existent file", async () => { - const file = getFilePath("NON-EXISTENT.rec") - - expect(fs.existsSync(file)).toBe(false) - - const result = RecordingsUtility.getInformation(file) - expect(result).toBe(null) - }) - - it("should return null for incorrect file", async () => { - const file = getFilePath("incorrect.rec") - - expect(fs.existsSync(file)).toBe(true) - - const result = RecordingsUtility.getInformation(file) - expect(result).toBe(null) - }) - - it("should return an object for correct file", async () => { - const file = getFilePath("correct.rec") - - expect(fs.existsSync(file)).toBe(true) - - const result = RecordingsUtility.getInformation(file) - expect(result).not.toBe(null) - }) - - it("should return correct object for correct file", async () => { - const file = getFilePath("correct.rec") - expect(fs.existsSync(file)).toBe(true) - - const serializedFile = getFilePath("correct.serialized.json") - expect(fs.existsSync(serializedFile)).toBe(true) - - const correctResult = JSON.parse( - fs.readFileSync(serializedFile).toString() - ) - - const result = RecordingsUtility.getInformation(file) - expect(result).toMatchObject(correctResult) - }) -}) diff --git a/wrapper/javascript/tsconfig.json b/wrapper/javascript/tsconfig.json deleted file mode 100644 index 4137b627..00000000 --- a/wrapper/javascript/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "include": ["src/ts/*.ts"], - "exclude": ["node_modules"], - "compilerOptions": { - "target": "es2021", - "module": "CommonJS", - "moduleResolution": "node", - "lib": ["es2021"], - "outDir": "dist", - "allowJs": true, - "rootDir": "src/ts/", - "strict": true, - "noImplicitAny": true, - "esModuleInterop": true, - "resolveJsonModule": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "declaration": true - }, - "rules": { - "triple-equals": true, - "curly": true, - "strict-boolean-expressions": true, - "no-unnecessary-condition": true - } -}