Skip to content

Instantly share code, notes, and snippets.

@alexjlockwood
alexjlockwood / ClosedOpenOpenClosed.md
Last active August 16, 2022 20:45
How to Timeout Closed-Open + Open-Closed

Closed-Open + Open-Closed

Closed-Open + Open-Closed is considered the 4th hardest Roll Off variation to timeout. The first 8 laps are very easy, with 3 easy jumps to start on blue and 3 easy jumps to end on orange. However, the variation becomes very difficult to execute on laps 9-12 when the slime has reached it's maximum height.

Paths

There are 2 possible paths to take on laps 9-12 of the timeout:

Alex's Path

@alexjlockwood
alexjlockwood / 5WallerOpenClosed.md
Last active August 16, 2022 20:45
How to Timeout 5 Waller + Open-Closed

5 Waller + Open-Closed

5 Waller + Open-Closed is considered the hardest of all 20 variations to timeout due how difficult it is to execute as well as the complex pathing decisions that need to be made in order to avoid collisions with other players.

Paths

Laps 7-8

While the paths themselves are not difficult, laps 7-8 are particularly dangerous due to the possibility of desync.

@alexjlockwood
alexjlockwood / ClosedOpenGrandCanyon.md
Last active August 16, 2022 17:51
How to Timeout Closed-Open + Grand Canyon

Closed-Open + Grand Canyon

Overview

Also known as the "2nd Hardest Variation", Closed-Open + Grand Canyon is notorious for being extremely difficult to timeout.

This variation becomes very difficult starting on the 9th lap at around 3:30 into the timeout. This is because it becomes very tricky to get past the first wall on orange due to the presence of the large grand canyon gap on blue. Once you do get past the first wall on orange, the remainder of the lap is straightforward, with 3 easy jumps in the middle of blue and 3 easy jumps at the end of orange.

Paths

@alexjlockwood
alexjlockwood / 5WallerGrandCanyon.md
Last active August 16, 2022 17:51
How to Timeout 5 Waller + Grand Canyon

5 Waller + Grand Canyon

Overview

Also known as the "3rd Hardest Variation", Closed-Open + Grand Canyon is in the top tier of most difficult Roll Off variations to timeout.

Paths

There are 3 possible paths to take on laps 9-12 of the timeout:

How a path is generated

Step 1

Place two 4x1 vertical stack of tiles and three 3x1 vertical stack of tiles on the grid. The order in which you place the tiles is random (so for example there would be a 2 / 5 = 40% chance that the path could end with a 4x1 line to the finish). The stacks are placed such that the top of one stack will align to the bottom of the next stack. The tips of the stacks are not allowed to intersect.

For example, after step 1 it could look like this:

|x| | | | | | | | | |
This file has been truncated, but you can view the full file.
{
"ability_score_settings": [
{
"value": "6",
"id": "ability_score_bad_streak_episode_range_max"
},
{
"value": "4",
"id": "ability_score_bad_streak_episode_range_min"
},
@alexjlockwood
alexjlockwood / MainActivity.kt
Last active May 4, 2021 01:31
Example of a TimerButton component that manages its own timer state (video: https://youtu.be/-qbJRDDwB8M)
package com.alexjlockwood.composetimerdemo
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
@Composable
fun <S> ScreenTransition(
targetBackstack: List<S>,
modifier: Modifier = Modifier,
content: @Composable (S) -> Unit,
) {
// TODO: figure out if we are sliding in from left or right
ScreenTransition(
targetState = targetBackstack.last(),
modifier = modifier,
/**
* A simple ListItem that displays text, detail text, a start icon, and an optional end icon.
*/
@Composable
fun ContactListItem(
text: @Composable () -> Unit,
modifier: Modifier = Modifier,
detailText: @Composable (() -> Unit)? = null,
startIcon: @Composable (() -> Unit)? = null,
endIcon: @Composable (() -> Unit)? = null,
@alexjlockwood
alexjlockwood / CircleSquare.kt
Last active September 26, 2020 17:52
A circle square animation implemented using Jetpack Compose. Inspired by @beesandbombs (twitter.com/beesandbombs).
package com.alexjlockwood.circlesquare
import androidx.compose.animation.animatedFloat
import androidx.compose.animation.core.AnimationConstants
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.repeatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.runtime.Composable